20 Useful Linux Commands for all

Whether you are a newbie or seasoned developer, it is a must for every developer or engineer to learn some basic Linux commands. Here is a list of 20 basic but important commands that can help you a lot to gain a better understanding of your application environment.
ls
List all files and directories in the current working directory.
pwd
pwd stands for Print Work Directory meaning it will show the directory where you are currently in.
cd
cd stands for Change Directory. If you want to browse from one directory to another you need to use the cd command.
mkdir
To create a new directory.
rmdir
To remove a directory. You can remove any directory by this command. Only if the directory is empty otherwise it can not be removed by rmdir command. But there is a way to remove a directory with its files or not.
rm
Use rm command using -rf option. It will forcefully remove the directory.
touch
The touch command is used to create an empty file.
cat
This command is used to view the contents of any file.
cp
This command is used to copy a file from source to destination.
mv
This command is used to move a file from one location to another.
cmp
This command is used to compare two files
history
This command is used to check the commands used in history.
find
This command is used to search for files from the terminal.
which
This command is used for searching the executable location of the given parameter.
locate
It is used to find the location of a specific file.
grep
It is the most useful and powerful commands you can use when searching for patterns
clear
It is used to clear out the terminal screen.
sudo
It allows you to access the root from your user account.
chmod
It allows you to change or modify the access permission of system files or objects.
chown
It’s similar to the chmod command but instead of changing access permissions it enables the users to change the ownership of a file or directory.
Thank you for reading this. we will come back with some more interesting posts. Till then keep following us on Facebook, Twitter, Medium, LinkedIn, etc.