Linux directors cannot live by the GUI interface alone. That is why we’ve compiled the foremost essential UNIX system commands into this convenient guide. We’ve designed this guide specifically for UNIX system managers and system directors as a reference library of solely the foremost helpful utilities. By learning the way to use many straightforward tools, command-line cowards will become the scripting commandos, obtaining the foremost out of UNIX system by capital punishment kernel and shell commands. Relish our guide and take care to post your own UNIX system queries or browse UNIX system answers in our comment section below. If we get a majority on an issue we will go to resolve that issue by making a specific particular post for that.
Linux was developed by Linux Torvalds at the University of Helsinki in Finland(Finnish capital). He started its development in 1991. The effort enlarged with volunteers conducive code and documentation over the net. It’s presently developed underneath the GNU public license and is freely out there in source and binary form.
Following are 10 basic commands you can use via CLI:
The cd command stands for Change Directory. It allows the user to traverse between the directories. Like if user is in the Downloads directory and wants to change it to Android directory(my android directory is on Desktop).
Syntax: cd path_of_destination_directory
Example: cd Desktop/Android/
The ls command stands for List. It allows user to list all the files, folders and directories of the directory one wants to view.
Syntax: ls directory_name/
Example: ls Desktop/
The mkdir command stands for Make Directory. Like if you have worked on Windows OS you must have Right-clicked on screen -> Clicked on New -> Clicked on Folder but in Linux you have to type mkdir to make a directory at the location you want.
Syntax: mkdir directory_name
Example: mkdir testingdirectory
The mv command stands for Move. It allows the user to move a file from one folder or directory to another folder or directory. Even it can move a directory too.
Syntax: mv desired_file path_of_destination
Example: mv Desktop/test.txt Downloads/Android
The rmdir command stands for Remove Directory. It allows user to remove an existing directory provided the directory should be empty.
Syntax: rmdir directory_name
Example: rmdir Desktop/testingdirectory
The touch command is used to make empty files just like you create directories by mkdir command, touch command is used to create files.
Syntax: touch file_name
Example: touch testingfile.txt
The rm command stands for Remove. It is basically used to remove files from the Linux system. Whereas you see that rmdir only removes an empty directory while rm command removes both files and directory containing files in it.
Syntax: rm file_name
Example: rm testingfile.txt
The clear command will precisely do what it says. Once your UNIX operating system CLI gets all mucked up with varied readouts and info, the clear command clears the screen. Use of the clear command can take the user back to the beginning prompt of no matter directory you’re presently operation in.
The cp command stands for Copy. It allows user to copy a file from the source directory to the target directory. This command doesn’t work for copying directories.
Syntax: cp source_file target_directory
Example: cp testingfile.txt Downloads/Android
The find command, as the name suggests search the desired file in the given directory. Like if you want to find testingfile.txt in the Android directory then you have to enter the path to your Android directory and then search for th required file.
Syntax: find file_name
Example: find Downloads/Android/testingfile.txt