Reputation
18,204
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
6 41 51
Newest
 Necromancer
Impact
~2.6m people reached

Feb
3
awarded  Necromancer
Jan
19
awarded  Nice Answer
Jan
19
awarded  Nice Answer
Jan
16
awarded  Yearling
Dec
28
awarded  Pundit
Dec
28
awarded  Good Answer
Dec
22
awarded  Nice Answer
Dec
8
awarded  Great Answer
Dec
2
awarded  Good Answer
Nov
28
comment What does the “-” in “bash -” mean?
upvote for the only right answer.
Nov
28
comment Run a shell script as another user that has no password
@Nate, have you made some changes to the sudoers file. The default configuration allows root to run anything as anyone, without requiring a password.
Nov
25
comment How to automatically execute a command every time a certain command terminates?
"$@" expands all arguments as separate arguments. "$*" expands all arguments as a single argument (using the first character of IFS as separator). Using either unquoted is always wrong, since that will cause the shell to do word-splitting and pathname expansion on the result of the expansion.
Nov
25
answered How to make a command execute once a certain command terminates?
Nov
25
revised How to automatically execute a command every time a certain command terminates?
added important quotes
Nov
25
answered How to replace symbol in multiplefiles?
Nov
25
comment How to replace symbol in multiplefiles?
See Pitfall 1
Nov
25
revised How to include/exclude many different files/folders using terminal
extending the answer to also include `-prune`
Nov
25
comment How to include/exclude many different files/folders using terminal
-name and -path take glob patterns, not regular expressions.
Nov
25
comment How to include/exclude many different files/folders using terminal
@John -name only matches on the last path component. To match on the whole path, use -path like in your question. ! -path "*.tmp/*"
Nov
25
answered How to include/exclude many different files/folders using terminal