Reputation
16,144
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 32 45
Newest
 Necromancer
Impact
~2.1m people reached

Aug
12
awarded  Necromancer
Jul
23
comment Switiching Java version per session
@AlexandreSantos, You could put something like printf 'Currently using: '; type -P java at the start of the function
Jul
23
comment Help with “Exec=…” line for .desktop launcher - command works only in terminal
@ByteCommander, yes, sudo might be configured to require a terminal. You can use gksudo or kdesudo instead.
Jul
23
answered Switiching Java version per session
Jul
23
revised Get a script variable into subshell launched by find
added 1 character in body
Jul
23
answered Get a script variable into subshell launched by find
Jul
22
revised Command prompt is over written by previous commands!
Note about \D{...}
Jul
22
answered Command prompt is over written by previous commands!
Jul
21
comment Run a shell script as another user that has no password
@IanVaughan, With default configuration (of sudo), you will get asked for a password unless you run it as root. You can configure sudo to "allow user A to run cmd C as user B without requiring a password". See help.ubuntu.com/community/Sudoers
Jul
16
awarded  Good Answer
Jul
1
comment How to make a script delete a directory after checking for its existence?
@It'sWillem, sure. rmdir and rm do different things and behave differently.
Jun
28
comment How to destroy Ubuntu the best way
Except it doesn't. sudo rm -rf / will output the following two lines: rm: it is dangerous to operate recursively on '/' and rm: use --no-preserve-root to override this failsafe. (and not actually remove any files at all)
Jun
28
answered How to make a script delete a directory after checking for its existence?
Jun
28
reviewed Approve Try to execute a script (adduser.sh) in root /$
Jun
28
revised Make echo ignore spaces?
minor typo
Jun
28
answered Make echo ignore spaces?
Jun
28
comment find: unknown predicate
@isomorphismes, that line will not produce that error message on its own. It must be caused by other factors. E.g. if you try to put the find command in a variable, then run that variable, that is a plausible way to get that type of error. If that's the case, the solution is simple; don't put commands in variables.
Jun
19
comment How to change extension of multiple files from command line?
@pqnet, ${1%.abc} is defined by POSIX, if that's what you're referring to.
Jun
19
comment retain white spaces in fields when using awk
\s matches an s in nawk. Use the standard [[:blank:]] or [[:space:]] instead of the perl-isms. As far as I know, only GNU awk treats \s as whitespace.
Jun
16
awarded  Good Answer