Reputation
21,930
Next tag badge:
856/400 score
77/80 answers
Badges
3 49 79
Newest
 Good Answer
Impact
~879k people reached

Mar
31
comment Is it possible to reference the most recently modified file in a command line argument?
@user1247 I would just copy paste it instead of sourcing it, since you have to tweak it anyways. last_file () { #copy paste code here }. The only change to make is to change the exit to return, so the function doesn't exit your shell.
Mar
31
revised Four tasks in parallel… how do I do that?
forgot `-0`
Mar
31
answered Four tasks in parallel… how do I do that?
Mar
30
answered Home key acting strange in bash (tty and X) on long input strings
Mar
29
comment ls taking long time in small directory
Try /bin/ls (or rather, command ls) to run ls without the aliased options, to confirm whether or not it is the color option that is making a difference. FWIW, ls turns off coloring when its output is a pipe or other non-terminal device.
Mar
29
comment ls taking long time in small directory
Run type ls to check any possible aliases etc.
Mar
29
comment Replace whole line in a file from command-line
The -i option to sed is non-standard and usually breaks symlinks. If you have GNU sed you almost always want to add the option to --follow-symlinks. In general, I recommend avoiding sed -i and using ed instead. Files are not streams.
Mar
28
answered Replace whole line in a file from command-line
Mar
27
answered Attach multiple times to a single screen session
Mar
27
comment How to make `find` output full absolute file names?
I'd advise quoting "$PWD" just in case.
Mar
27
answered Are bsdutils, coreutils, and busybox all necessary in a Debian install?
Mar
27
comment How do I add network or user source connection data to history entries?
Sounds like process accounting may be useful. The shell history was never designed for logging, and if you do want to use it you have to trust all of your users. See related question on monitoring activity and a related answer.
Mar
27
comment Why did adding the Debian testing repository create so many package dependencies?
Is the version in backports still too old for your purposes?
Mar
26
revised Why can't I create a directory by full relative path argument?
added 8 characters in body
Mar
26
revised Why can't I create a directory by full relative path argument?
added 372 characters in body
Mar
26
answered Why can't I create a directory by full relative path argument?
Mar
23
comment Trying to set JAVA_HOME in ~/.bashrc
Getting the obvious question out of the way: have you restarted bash / reloaded the rc file since making the change?
Mar
23
answered How to link a folder to create a shortcut
Mar
23
comment Is it possible to reference the most recently modified file in a command line argument?
Even though file names ending in newlines are uncommon, it should be noted that command substitution strips trailing newlines, even when quoted.
Mar
23
comment permission reporting on sudoers
Do you mean sudo -l?