Add Line Numbers to “cat” Output

cat can be used to print the contents of a file in a Terminal, and it’s often useful to number each line of the output (including empty lines). Adding line numbers is as simple as adding the -n switch to the command: cat -n filename.txt Example Output, with -n switch: $ cat -n filename.txt 1 Line …

Monitoring the Status of Multiple Linux/BSD/OSX/Unix Hosts

daz@scampi:~$ ruptime You may run multiple Linux servers, or BSD servers, or even AIX servers, and need to monitor uptime, load averages, and users logged in from one central point.  @davetaylor on Twitter asked for the output of the ruptime command, which got me looking into the command in more detail – hence this post! …