In this page, you will learn some of the useful Linux commands along with its descriptions. This might be used as a handy reference to quickly know about the syntax of a command and its usefulness.
Downloads the file specified by the URL.
Displays the current directory you are in.
Allows the user to act like a superuser.
Allows the user to get root access.
|sudo apt-get install package_name||
Allows the user to act like a superuser and install packages.
Changes from current directory to the mentioned directory.
Moves back one directory.
To view the contents in a directory including files and sub-directories.
To view the contents in a directory including hidden files.
Displays the information about the command specified.
Shows where the specified file/directory is.
Creates a directory with the given name.
|mv old_filename new_filename||
Renames the file.
|cp old_filename new_filename||
Copies file from one location to another.
Removes the specified filename.
Removes the specified empty directory.
|rm -rf directoryname||
Removes files and sub-directories in the specified directory.
Creates a new file.
|ifconfig & iwconfig||
Allows the user to look at the network configuration.
Allows the user to test connectivity issues.
Opens the specified file in the vi editor to view/make changes.
Connects to the specified IP address.
|chmod 777 file_name||
Modifies the permissions of the specified file.
The three digits in 777 represents users, groups and others.
|chmod -R 777 directory||
Modifies the permissions of the specified directory recursively. Meaning it applies the changes for all the files and sub-directories.
|du -sh filename||
Prints the file size
In case if you found something useful to add to this article or you found a bug in the code or would like to improve some points mentioned, feel free to write it down in the comments. Hope you found something useful here.