#!/usr/bin/env bash ncdu # launches ncurses version of `du` that makes it nice to navigate around in pgrep -L beam.smp # lists all Erlang processes pkill ruby # kills all Ruby processes fc # opens previous command in your $EDITOR then after editing line, will execute on editor quit fc pgrep # opens last command starting with pgrep in $EDITOR lsof -iTCP # show current TCP connections lsof -i :8080 # show current connections on port 8080 lsof -i@your.remote.host # show all connections to/from your.remote.host lsof -u `whoami` # show all your user's connections lsof -c beam.smp # show all connections for Erlang nodes lsof /path/to/file # show all OS processes using or pointing to that file path lsof -p 4830 # show all connections for a specific PID (4830) lsof -a -u USER -c beam.smp # show all connections for Erlang nodes running as USER /etc/init.d/nginx stop sudo !! # runs previous command but prefixes sudo before it (can use anything instead of sudo, the key is !!) ^stop^start # reruns previous command but substitutes stop for start vim /really/long/path/to/file.crap ghc !$ # use argument from previous command using !$...can prefix with anything, just an example usage with ghc. vnstat -l 1 -i eth0 # show live transfer counters for interface eth0 ack "text/pattern to search for" # equivalent to a faster fgrep for all files in current directory or under (recursively) htop # shows colourful version of top with CPU ASCII art display :) ipcalc 192.168.0.1/32 # displays information about resulting broadcast network, very very useful! pstree -u USER # show process tree for all procs running as USER pstree -p PID -l 2 # show process tree for all procs under PID at 2 levels deep echo "Enjoy and heckle me on Twitter @SusanPotter if you want to tell me what commands you can't live without not in this usage script! :)"