tail, wc, grep, sort, uniq, diff, echo, chown, chmod, umask

developer.ibm.com

tail

Tail command with -f option will open a file at the end and watches for change in content. Whenever there is new content in the file, it would print in the window.

wc

WC is used to count the words in a file.

grep

Grep stands for global regular expression print. It’s used to find and print the line containing a particular search pattern in a file. Example:

sort

Imagine you have a file with vegetable names and you want to sort them alphabetically, then use sort:

uniq

Uniq command is similar to sort but it removes the adjacent duplicate lines.

diff

Diff command is used to find the difference between the files, for example:

echo

Echo prints the argument on the terminal, for example, to print Hola on terminal:

chown

Chown is change ownership. It is used to change ownership of a file or a directory to another user. Ownership can be changed by only the owner of the file.

chmod

Chmod is used to change the file permissions. For example, when we execute ls -al then the files in a folder will be listed along with the file permissions:

umask

Umask along with option -S helps us to read default permissions in the system that would be assigned to a file or a directory or a link.

--

--

I am a geek and technologist, at-least that’s what I would like call myself. I love anonymity. Let’s rock and roll!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ghost Rider

I am a geek and technologist, at-least that’s what I would like call myself. I love anonymity. Let’s rock and roll!