Author: Binny V A

A philosopher programmer who specializes in backend development and stoicism.

Commands for Idle Time

I run this command when I go for lunch or something – these commands take a while to run. sudo…

lsmod – Show Loaded Kernel Modules

This command shows the kernel modules that are currently loaded. # lsmod Module Size Used by vboxdrv 55088 0 autofs4…

Rip DVD using Mencoder

Rip a DVD to an AVI file using mencoder mencoder dvd://1 -dvd-device /mnt/Image/ -ovc xvid -xvidencopts pass=1 -alang en -oac…

Get External IP

Get the external IP of your system – useful if you have a dynamic ip… curl -s checkip.dyndns.org|sed -e ‘s/.*Current…

Show Disk Usage – du

du shows the ‘disk usage’ – the space taken up by the files and folders in the current directory. du…

free Command

free gives the Memory info (in kilobytes). free #Output total used free shared buffers cached Mem: 2075000 667508 1407492 0…

last Command

The last command shows a history of logins… last

Double Space a File using Sed

Add a \n after every line in a file using the sed command… sed G

Finger Command

System info about a user. Try: finger root. An admin needs it all the time finger user_name #finger root Login:…

cmp Command – Compare Files

The command cmp is similar to diff: # cmp file1 file2 file1 file2 differ: byte 10, line 1