Reputation
849
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 10
Newest
 Yearling
Impact
~43k people reached

May
4
comment Difference between sh -x and ./ for script execution
You might want to add what a shebang does? Followed by "Why do people rather use #!/bin/env bash over #!/usr/local/bin/bash ?
May
3
comment How to Dual-Dual-Boot?
As a work around: Can you boot from other devices? E.g. a small USB pendrive or a SD card? Those could store a bootloader and start Ubuntu. And with a boot menu in the BIOS you could select to boot either from HDD (and corporate MBR and thus windows) or from the SDcard (which would boot Ubuntu from the HDD's second partition).
Apr
7
comment Delete files older than X days +
Possibly fun when I have files with spaces. E.g a file called "test one" and rm gets fed rm test one. (Which will delete a file called "test" and a file called "one", but not a file called "test one"). Hint: -delete or -print0
Apr
7
comment Delete files older than X days +
Note that for each and every file you will execute the rm command. If you have 1000 files older than 5 days then rm will get started 1000 times. For this reason consider the -delete option as in Costa's comment or -exec rm {} \+
Feb
8
revised Will a 32-bit linux OS work on modern desktops that are compatible with 64-bit?
Balanced the parenthesis.
Feb
7
revised Will a 32-bit linux OS work on modern desktops that are compatible with 64-bit?
added 636 characters in body
Feb
7
answered Will a 32-bit linux OS work on modern desktops that are compatible with 64-bit?
Jan
18
comment Win7 NTFS Partition is empty using Linux LiveCD
Also, windows weirdness is often best solved from within windows. after making the backup boot again from the windows 7 DVD, go back to the command prompt and run a fsck (chkdsk).
Jan
18
comment Win7 NTFS Partition is empty using Linux LiveCD
Before you do anything else. Make a backup of the disk. Not a file backup but a raw dump of the whole disk. (e.g. boot from a liveCD and dd the disks content to another disk or via netcat over the network). Only then attempt to modify the original. That way you can always revert if something appears to be a wrong move.
Jan
13
awarded  Yearling
Jan
3
revised Can I copy multiple directories into a single directory with a single command?
added 290 characters in body
Jan
3
answered Can I copy multiple directories into a single directory with a single command?
Nov
27
comment Update process name in shell, is it possible?
You might want to make sure that the new name you copy to argv[0] is as long or shorter than the original.
Oct
7
answered How to find IP address of device connected on the same network as PC based on MAC id
Sep
24
awarded  Autobiographer
Aug
1
comment Remove GET parameters from file names in directory
I am not familar with the rename utility. But find . -name \?* -ls does select all the files starting with a question mark. You could replace the -ls with a mv and basename.
Jul
31
revised Is it recommended to use zsh instead of bash scripts?
added 1 character in body
Jul
24
comment Copy over existing files without confirmation?
+1 for pointing at how to bypass an alias. Tempted to -1 for the brute force solution.
Jul
17
comment #!/bin/bash - no such file or directory
True. And as mentioned, there is the much more portable /usr/bin/env method to have a program locate bash (or an other interpreter) for you. No need to hardcode a pah.
Jul
17
comment #!/bin/bash - no such file or directory
I can not speak for all distributions, but when I do a create a test script with: #!/usr/bin/env bash echo Script is running! (no execute bit set) and I try to execute it with ./script.demo I get -bash: ./script.demo: Permission denied. chmod +x script.demo ./script.demo produces the expected "Script is running!"