Check These Out
Works on CentOS ad OpenBSD too, display time of accounts connection on a system, -p option print individual user's statistics.
Uses ssh as tunnel tunnel for an other connection.
-f runs ssh in the background -N tell that there is no command to run -L deals with the forwarding aspect where the first number is the local port number, the second is parameter is the name of the server to forward to and the third parameter is the port number on that server. The last part of the command is the usual ssh form consisting of the user name and remote server name
This is just a phrase I use to help me remember which way is what when using nice (top, renice, etc.), and not a command, (unless you really want this in your .bash_history to help remind you.) I was using the command `man nice ` way too much just to look up which way is what. This saves 9 keystrokes every time I remember it.
Make sure you downvote me if you think mnemonics sux. Otherwise I hope this helps someone else.
requires imagemagick
Often I need to edit a bash or perl script I've written. I know it's in my path but I don't feel like typing the whole path (or I don't remember the path).
As of March 7, 2012:
$ brew update - downloads upgraded formulas
$ brew upgrade [FORMULA...] - upgrades the specified formulas
$ brew outdated - lists outdated installations
Note updating all packages may take an excruciatingly long time. You might consider a discriminating approach: run `brew outdated` and select specific packages needing an upgrade.
For more information see homebrew's git repository: https://github.com/mxcl/homebrew
The value for the sort command's -k argument is the column in the CSV file to sort on. In this example, it sorts on the second column. You must use some form of the sort command in order for uniq to work properly.
ps returns all running processes which are then sorted by the 4th field in numerical order and the top 10 are sent to STDOUT.