Linux commands that prove useful for your day to day workflow.

The UNIX tail command is very useful for viewing the last number of lines of a logfile. As in this example. Showing the last 10 lines in the file /var/log/syslog. |{~}-{Thu Feb 16 21:36:44} -{john@deep-thought } $ tail -n 10 /var/log/syslog Feb 16 21:31:01 deep-thought cron[1480]: (*system*anacron) WRONG FILE OWNER…

Read More

More useful UNIX commands.

Time a UNIX command. the time(1) command will tell you how long it took for a command to execute. ubuntu ~ $ sudo time find / -name dpkg.log /var/log/dpkg.log 0.82user 1.82system 0:34.04elapsed 7%CPU (0avgtext+0avgdata 2260maxresident)k 679328inputs+0outputs (2major+4374minor)pagefaults 0swapsubuntu ~ $ sudo time find / -name dpkg.log /var/log/dpkg.log 0.82user 1.82system 0:34.04elapsed…

Read More

Useful Linux/UNIX commands.

There are many useful Linux commands that are fun to use and can do some very cool things. cat mysongpart2.mp3 >> mysongpart1.mp3cat mysongpart2.mp3 >> mysongpart1.mp3 Using /bin/cat to append the second part of a MP3 file onto the first part, making one large file that will play seamlessly from part…

Read More