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:
- Install a Virtual Machine, for examle Oracle VM VirtualBox on Windows
or
- Create a partition in your HDD and install UNIX or UNIX variants like Ubuntu, Linux and Fedora and so on.
or
- In Windows, install Cygwin.
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:
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:
ls –larth
Output:
Utility command:
logVS.txt
Output: 
To find the difference between two directories, for example, there are two directories unix and unix2.
Command:
ls unix/ ; ls unix2/
Output:
Now use the diff command to find the difference between the two directories.
Utility command:
diff unix unix2
Output:
If you would like to see color output in your terminal in the file listing then use the following:
Utility command:
ls -C --color
Output:
If the preceding command is too large and you would like to use it again then use the alias command.
Utility command:
alias lc=’ls -C –color’
Sort the file content, for example there is a file.txt as:
Command:
cat file.txt
Utility command:
sort file.txt
Find content in the file.
Utility command:
- cat file.txt | grep C#

Use the History command to see all the commands used at the terminal.
There are many cool things you can use to do more. I'll publish more on this.
Kinex MediaPosted Apr 25, 2016, 6:49 AM
Thanks Sumit, Cygwin Also Support AES 256 on Windows
Guest UserPosted Aug 12, 2015, 8:15 PM
Thanks Santhakumar Munuswamy
Santhakumar MunuswamyPosted Aug 12, 2015, 3:09 PM
Good Article. Thanks for sharing
Guest UserPosted Aug 10, 2015, 11:39 PM
Thanks Rakesh Chavda , Nipesh Janghel
Nipesh JanghelPosted Aug 10, 2015, 12:01 PM
Nice!!
RakeshPosted Aug 10, 2015, 10:50 AM
Good one sir
Guest UserPosted Aug 10, 2015, 9:37 AM
Thanks Gopi Chand!
Gopi ChandPosted Aug 10, 2015, 9:37 AM
Excellent work
Guest UserPosted Aug 10, 2015, 6:03 AM
Pls let me know if you want me to write more on the automation & scripting.
Guest UserPosted Aug 10, 2015, 6:03 AM
Thanks guys for your feedback!
Debasis SahaPosted Aug 10, 2015, 3:34 AM
Good one....
Guest UserPosted Aug 10, 2015, 2:33 AM
Sam Hobbs Powershell is windows advance set over DOS scripting but I'm not a big fan of it as I find very long n lengthy commandlets. These functions are not JS functions, these are utilities & commands provided by UNIX bash and in Windows Cygwin provide the same to a certain extent. I hope this answers your questions. Thanks
Guest UserPosted Aug 10, 2015, 2:31 AM
Thanks guys ! Abhishek Jaiswal :) "time saving" is associated with the use of automation & using terminal, ex- you want to deploy the application at various servers so rather doing things manually everytime you can write a script. There could be numberous ways where terminal is really useful. Can't write all :)
Abhishek JaiswalPosted Aug 10, 2015, 2:25 AM
Nice read. Just got a doubt- How it's helpful in Terms of 'Time Saving' and is 'Time Saving' somehow related to 'Time Complexity' or it's something else? Cheers!! :)
Ankit BansalPosted Aug 10, 2015, 2:06 AM
Nice Sumit Sir...
Sibeesh VenuPosted Aug 10, 2015, 1:01 AM
Nice Share
Rajeesh MenothPosted Aug 10, 2015, 12:38 AM
Nice article...
Nilesh JadavPosted Aug 10, 2015, 12:12 AM
Nice Article sir, Thanks for sharing
Mahesh ChandPosted Aug 9, 2015, 1:50 PM
Interesting. In second paragraph, there is a minor spelling "for example"
Sam HobbsPosted Aug 9, 2015, 1:36 PM
Have you written scripts using JavaScript? There are functions for JavaScript that do many of the things that command prompt windows do so JavaScript can be a powerful scripting language for Windows.
Sam HobbsPosted Aug 9, 2015, 1:33 PM
I have not used PowerShell much, probably never. It is like a console window, correct?