In this article, we will discuss '10 Useful Commands for Linux Administration'. Linux was developed by Linux Torvalds. Linux is an operating system which is distributed under an open-source license. Its functionality is similar to Unix. It was initially developed for personal computers but now Linux is the most reliable OS and is part of the Enterprise IT Infrastructure. As Linux is open source, programmers are able to use the Linux Kernel to design there own customized operating system. It comes in various flavors like Red Hat, Ubuntu, CentOS, etc.
If you are a newbie and planning to get some understanding of Linux then proceed. Below mentioned commands will be more than enough to keep give you a head-start into the Linux environment. These commands will help you to perform a basic level of file management activities in the environment. So let's get started.
cd - Change Directory
As the name suggests this command is used to change directory.
ls - List
Linux administrators and developers mostly use this command to fetch the list of the files and directories. When ls is combined with different options, it can provide the list with permission levels, size, and date of modifications.
mkdir - Make Directory
As the name of the command suggests, it is used for creating a directory (folder).
mkdir filename
rm - Remove
This command removes the file without prompting for the confirmation.
rm filename
rm command can be used with the option 'd' to delete the directory. The only catch is that the directory should be empty.
rm -d filename
rmdir - Remove Directory
This command is for removing the directory. Once the command is entered a prompt will appear asking for confirmation to delete the directory.
rmdir directory-name
pwd - Present Directory
At any point, if you forget about in which directory you are working on. Just type in pwd and enter and it will show you the current directory.
cp - Copy File
This command is used to make a copy of the file in the same or different directory. Think of it like Copy/Paste feature in windows.
mv - Move
MV command is for moving the file from one directory to another. Think of this like Cut/Paste feature in windows.
cat - Concatenate
This command can be used for creating the file, editing and viewing the content of any file.
cat filename
find - Find
Find command is used to search files, strings, and directories.
This list of commands should be sufficient for the user to manage basic files and directories on Linux environment. Do share your comments below if you like the article and let me know if you would like to see more articles on Linux Administration.
Comments
Post a Comment