If you are new to Linux VPS Hosting, this article is for you. As everyone needs to learn from somewhere, we are going to use this space to present 10 basic Linux commands which every budding Linux system admin needs to know. With that said, let’s get on with it.
The CD command is the change directory command. CD, as its name suggests, allows users to jump and change from one directory to the next. An example of a CD command is:
The Top command, like the CD command, is one of the most frequently used Linux commands. The Top command will show users the full CPU activity of your Linux VPS as well as showing all tasks currently being managed by your Linux kernel. Users can also add additional commands on to Top. For instance:
Top -q causes top to refresh automatically without any delay.
The ls command will list all the active and working directories and files within the current directory. A useful example of the ls command which will show the user all the files in the bin directory:
The man command will show the user the given manual of a specified command. The man command effectivley serves to display and format active online manual pages. An example of the MAN command which lists all of the manual information of mkdir is:
As the command name sounds, the MKDIR command makes new directories. An example of the MKDIR command which would make the directory “dir1_dir2” is:
As it sounds, the RM command allows a user to remove files from your Linux box. An example of the RM command which would remove the file howto.txt is:
It should be noted, you can also remove active directories using the command:
The MV command, as it sounds, command a move (MV) of a file or a directory. An example of the mv command to specify the moving of the directory test.dir to the directory notatest is:
mv test.dir notatest/.
It should be noted, the period at the end of notatest/. specifies the moving of a directory as opposed to the renaming of a directory.
The LESS command allows a user to see all active .txt files on their Linux box. An example of the LESS command which would show the user the .txt file lincommand.text is:
The TAR command lets user archive files into one single file. TAR commands have additional components, C, V and F. C means create archive. V means verbose, i.e. print all new filenames added to an archive. F means appears next. With this in mind, an example of the TAR command which would archive the subdirectory LinuxCommand.tar (this is an example subdirectory) to the main directory of LinuxCommand is:
tar cvf LinuxCommand.tar LinuxCommand
The PING command is used as a network diagnostics tool. The PING command will return the uptime and downtime status of a given domain. To ping www.google.com, a user would type in:
If you have any questions or concerns about basic Linux commands, leave us some comments and we will work to create more knowledgebase articles addressing your concerns or speaking to other basic Linux commands.