As a developer, I love terminal (console) mode and I suggest we use terminal often. The real advantage of a terminal is automation and time savings. UNIX Bash scripting is really powerful for it. I've worked very often on Command Prompt (console) and Bash scripting and I really enjoy that.

To learn UNIX utilities and tricks we need to have its shell. But most of us use the Windows OS. Now you have various choices in Windows to get access to a UNIX shell as in the following:

Cygwin

You can download Cygwin using the preceding URL for 32/64 bit machines and after installation it'll give you a terminal like this:

Cygwin

Now, we're all set to explore some cool features of UNIX.

If you have a huge file and you want to empty it quickly then use the redirection operator. Assume you have a large log file of 390k and want to clear the contents it fairly simply.

Command:

Output:

clear the contents

Utility command:

Output:

logVS

To find the difference between two directories, for example, there are two directories unix and unix2.

Command:

Output:

cmd

Now use the diff command to find the difference between the two directories.

Utility command:

Output:

diff command

If you would like to see color output in your terminal in the file listing then use the following:

Utility command:

Output:

Output

If the preceding command is too large and you would like to use it again then use the alias command.

Utility command:

Sort the file content, for example there is a file.txt as:

Command:

Utility command:

Find content in the file.

Utility command:

Use the History command to see all the commands used at the terminal.

History command

There are many cool things you can use to do more. I'll publish more on this.