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 (/etc/cron.d/anacron) Feb 16 21:31:29 deep-thought … 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 7%CPU (0avgtext+0avgdata 2260maxresident)k 679328inputs+0outputs (2major+4374minor)pagefaults … 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 one to part 2. vmstat … Read more

More Linux Commands. Very useful to know for a Linux user.

While running Linux, if you want to list the contents of a folder in a vertical list format, just use the ls command with these switches. ls -hula –color=autols -hula –color=auto then you get the directory listing with human readable file sizes instead of being listed in bytes. To list the partitions on a disk, … Read more