Introduction to basic Linux Commands
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.
cdThe 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:
topThe 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 -qTop -q causes top to refresh automatically without any delay.
lsThe 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:
manThe 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:
mkdirAs the command name sounds, the MKDIR command makes new directories. An example of the MKDIR command which would make the directory “dir1_dir2″ is:
rmAs 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:
rm howto.txtIt should be noted, you can also remove active directories using the command:
mvThe 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.
lessThe 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:
tarThe 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
pingThe 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:
ping www.google.comIf 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.
Tags: Linux, Linux Basics, Commands, Linux Commands
This work is licensed under a
Creative Commons Attribution-