Tuesday, October 16, 2012

Eleventh session of Some of basic UNIX commands that are useful very frequently


Today we will discuss about some more useful commands that are frequently used in UNIX/LINUX based systems.

wc is a command by which one can know about no of lines, words and characters present in a file.

wc filename

Above command will gives number of lines, words and characters present in file named 'filename' present in current working directory. You can know current working directory by using pwd that we discussed in previous posts.

date is a command which displays current date and time.

diff is a command using which you can find differences between two files. It displays differences between two files by comparing each other.

diff filename1 filename2

Above command will show all differences between files named 'filename1 and filename2'present in current working directory.

du is a command by which one can know disk usage i.e. space used by directory and its contents.

Don't hesitate to try these when you are free. If you already got a chance to try these, feel free to give your valuable feedback/comments. We will discuss about some more useful commands in next posts.

No comments: