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.
List all files and directories in the current working directory.
pwd stands for Print Work Directory meaning it will show the directory where you are currently in.
cd stands for Change Directory. If you want to browse from one directory to another you need to use the cd command.
To create a new directory.
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.
Use rm command using -rf option. It will forcefully remove the directory.
The touch command is used to create an empty file.
This command is used to view the contents of any file.
This command is used to copy a file from source to destination.
This command is used to move a file from one location to another.
This command is used to compare two files
This command is used to check the commands used in history.
This command is used to search for files from the terminal.
This command is used for searching the executable location of the given parameter.
It is used to find the location of a specific file.
It is the most useful and powerful commands you can use when searching for patterns
It is used to clear out the terminal screen.
It allows you to access the root from your user account.
It allows you to change or modify the access permission of system files or objects.
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.