≡ Menu

SathiyaMoorthy

The diff command output can get little confusing to read when you diff two files that has lot of differences. Wouldn’t it be nice to view the file differences visually? vimdiff utility gives a better visual feeling of differences between files as explained in this article. 1. Difference in whole line – Blue Color and [...]

{ 11 comments }

Question: I would like to understand the basics of how to write and execute Erlang program on Linux OS. Can you explain it with a simple example? Answer: In this article, let us review very quickly how to write a basic Hello World Erlang program, Compile and execute erlang program on Linux or Unix OS. [...]

{ 3 comments }

Question: Sometimes I want to repeat a command (or shell-script) frequently (every few seconds). Is there a better way to execute a unix command every n seconds (instead of keep typing the same command manually)? Answer: Using watch command you can execute a command and view it’s output every few seconds. This is very helpful [...]

{ 12 comments }

Question: I would like to terminate my Unix command line shell, when I don’t execute any command for N number of seconds. i.e How to automatically log out if there is no activity in a Linux shell ? Answer: TMOUT variable in bash will terminate the shell if there is no activity for N seconds [...]

{ 6 comments }

When you execute a unix shell-script or command that takes a long time, you can run it as a background job. In this article, let us review how to execute a job in the background, bring a job to the foreground, view all background jobs, and kill a background job. 1. Executing a background job [...]

{ 27 comments }

On Unix platform, tar command is the primary archiving utility. Understanding various tar command options will help you master the archive file manipulation. In this article, let us review various tar examples including how to create tar archives (with gzip and bzip compression), extract a single file or directory, view tar archive contents, validate the [...]

{ 60 comments }

Question: How do I uncompress a *.7z file ( 7zip file ) in UNIX / Linux ? Can you explain with a simple example? Answer: Use 7za command to unzip a 7z file ( 7zip file ) on Unix platform as shown below. Verify whether you have 7za command on your system. # whereis 7za [...]

{ 17 comments }

Unix file and directory permission is in the form of a 3×3 structure. i.e Three permissions (read, write and execute) available for three types of users (owner, groups and others). In the output of ls -l command, the 9 characters from 2nd to 10th position represents the permissions for the 3 types of users. -rw-r--r-- [...]

{ 22 comments }