by mmaunder · 15y ago · 0 comments
disown - bash built in.
You know how you always start that mega long rsync in an ssh session from your laptop and then realize you have to go offline halfway through? You forgot to start it in screen or nohup, didn't you? You can pause it (ctrl+z), background it (bg), and then disown it so it is protected from SIGHUP when you quit your ssh session. Bash (and, to be fair, zsh and others have copied much of this) has some wonderful job control features most people are completely oblivious of - even veterans of 20 years.
http://www.commandlinefu.com/commands/browse/sort-by-votes
Most of my time savers that I've never thought of were found there.
Love this one.
python3 -m http.server
[ward@hathor ~]$ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7 Sep 5 00:45 /usr/bin/python -> python3
Arch defaultThere's also retty: http://pasky.or.cz/dev/retty/ but again it's not a complete solution.
GNU screen, which I love and use to obscene extents daily, has an exceptionally hairy codebase. That said, I've got to get my tmux on and learn how to do screen equivalents with it....
http://www.techrepublic.com/blog/opensource/is-tmux-the-gnu-...
I currently use dvtm to split terminals and connect to multiple screen sessions in a single window. The downside of dvtm is it takes the dwm[3] approach of using #defines rather than configuration files.
1. http://www.brain-dump.org/projects/dvtm/ 2. http://dtach.sourceforge.net/ 3. http://dwm.suckless.org/
I can't remember the exact details, but that should be enough to set you up for some googling.