286 reputation
12
bio website
location Chicago, IL
age
visits member for 4 years
seen Sep 16 at 23:30

Sep
16
comment Mounted a USB to /home and lost all the sub-directory's
@JordanHousewright most folks have (or make) a dir called /mint for sporadic mount/umount use
Feb
16
answered Why are background jobs started by my shell living longer than the parent shell and controlling terminals?
Oct
21
awarded  Yearling
Mar
16
comment How do I reuse the last output from the command line?
Just a note, remember that this is rerunning the command. If your command has side effects, this may not work for you.
Mar
15
comment stty: : Invalid argument
I'd do: (1) log in. strace -p <pid of current shell> -o /some/file -f (2) run your script (3) kill the strace (4) use your grep/sed skills to see all the file open()s in the strace log (5) grep through those for stty. I do this regularly when i don't know what's happening.
Mar
15
comment Determining what process is bound to a port
netstat -p above is my vote. also look at lsof.
Mar
15
answered stty: : Invalid argument
Mar
15
comment Where can I find the source code for `uptime`?
A debugging tool I like is strace. It will show all the syscalls your application makes. If you run strace uptime it would show (after loading) open calls on /proc/uptime and /proc/loadavg. Though it doesn't show everything, it's sometimes a decent start on reverse engineering
Oct
26
comment /etc/rc.d vs /etc/init.d
Sorry, but /etc/init.d is the standard, as part of the SVR4 standard that Linux start scripts copied.
Oct
26
answered /etc/rc.d vs /etc/init.d
Oct
21
awarded  Teacher
Oct
21
comment What are your favorite command line features or tricks?
yeah, very useful. You should quote openbox though ('[o]penbox'). The brackets will work as kind of a glob, so if there is openbox in your directory (say you're in /usr/bin) bash will just use openbox, which will prevent the grep trick.
Oct
21
awarded  Supporter
Oct
21
answered What is the bash shortcut to change to the previous directory?
Oct
21
answered What are the fundamental differences between the mainstream *NIX shells?