808 reputation
510
bio website
location
age
visits member for 4 years, 11 months
seen Jun 24 at 8:25

May
18
awarded  Enlightened
May
18
awarded  Yearling
May
18
awarded  Nice Answer
Mar
20
answered Run same executable multiple times in parallel
Feb
21
comment How to list installed man pages and search in many mans?
man apropos, apropos string
Oct
7
awarded  Nice Answer
Jun
5
answered Creating a file through a dangling symlink with vi
Jun
5
comment Creating a file through a dangling symlink with vi
cat ~/non_exist The link refers to a relative path, and the relative path of non_exist from ~/link is ~/non_exist
Jun
3
comment what is -z option in test command(linux)
You must be careful with the quoting. test -n $foo is a disaster waiting to happen because it will succeed if foo is undefined, but not if foo is of zero length. test -z $foo works as expected (ie, it succeeds both when foo is undefined and when foo is of zero length), but it is a good idea to use test -z "$foo" and avoid the pathological case. (test -z $foo succeeds when foo is undefined because the string -z is non-empty.)
Jun
3
comment what is -z option in test command(linux)
There is a big difference between "zero length" and "not defined". STRING='' defines a string of length zero. The -z option to test does not distinguish between undefined or zero length.
Feb
27
comment Unix set path not working
Note that env_reset may or may not reset PATH, depending on how sudo was compiled.
Feb
27
comment Unix set path not working
When you invoke sudo, the PATH is not normally reset. However it is possible to set an option which resets it. Check if env_reset is set in the sudoers file.
Feb
20
answered How to update autoconf if I don't have root privilege?
Jan
31
comment Grant root privileges only for one directory
If you merely want a user to have full read/write/execute permission on /opt/myapp, then set the permissions that way. If you want something else, you will need to clarify.
Jan
3
answered Bash shell scripting rsync
Dec
25
answered Does running the 'find' command fork a new process?
Dec
11
comment What is the Unix PATH variable and how do I add to it?
In csh, you can run set PATH=/directory/to/add:$PATH:/low/priority/path. However, in the sh family (bash, ksh, zsh, etc), that does not set the variable PATH at all, but assigns to $1.
Dec
6
comment What is going wrong with cat
Does test1 have a newline at the end? If not, the output of cat will be a single line. Perhaps you can try: echo > newline; cat test1 newline test2 newline > output.
Nov
26
comment Copy files above 500kB from one directory to another in Ubuntu
Do you want to copy, move, or make a link? You probably want to either move or make a (hard) link. Copying is rarely necessary.
Nov
21
answered tmux copy mode freezes on a vagrant virtual machine session