Top 25 Windows and Linux Commands That Everyone Should Know

Ever landed on CLI(Command Line Interface) or a Linux terminal or if you are in windows, then Powershell and feeling like “I want to balm some cool commands into this black and white window which are useful! That makes me feel like a real computer guy!”, if never felt like that, No worry. Here’s the top 25 most popular Linux and Windows commands that will help you in real world.  And If you really want to get into the terminal world, then the best tip that I can give you is that “mug it up and practice each command 10 times and discover new possibilities with such simple commands“. So, if you are on Linux, then turn up the terminal or if you are on windows, then pop up Powershell [Start->Search Powershell]


Linux/Unix

pwd – print working directory
hostname – computer’s network name
mkdir – make directory
cd – change directory
ls – list directory
rmdir – remove directory
pushd – push directory
popd – pop directory
cp – copy a file or directory
mv – move a file or directory
less – page through a file
cat – print the whole file
xargs – execute arguments
find – find files
grep – find things inside files
man – read a manual page
apropos – find what man page is appropriate
env – look at your environment
echo – print some arguments
export – set a new environment variable
exit – exit the shell
sudo – become super user root
chmod – change permission modifiers
chown – change ownership

Windows

pwd – print working directory
hostname – my computer’s network name
mkdir – make directory
cd – change directory
ls – list directory
rmdir – remove directory
pushd – push directory
popd – pop directory
cp – copy a file or directory
robocopy – robust copy
mv – move a file or directory
more – page through a file
type – print the whole file
forfiles – run a command on lots of files
dir /r – find files
select-string – find things inside files
help – read a manual page
helpctr – find what man page is appropriate
echo – print some arguments
set – set a new environment variable
exit – exit the shell
runas – become super user root
attrib – change permission modifiers
iCACLS – change ownership

Confused About how will you use these commands? Simple Way, Use Them. I know that if you have no experience with the terminal, you’ll very soon leave the terminal, but use google if you get stuck, Google is your friend, and the “man” in Linux and “help” in windows will be the best guide for you in the terminal. Whenever you are stuck, simply do this in Linux “man xxx” or in windows “help xxx”, where ‘xxx’ is your command and there are also other help commands like info.

If you have any question or suggestion then don't hesitate to post them in the comments section.