Updated March 14, 2023
Introduction to CentOS Commands
The way we have different software for various purposes, the same way, their exist different operating systems for different purposes. An organization has several technical requirements that need different platforms in order to be fulfilled. The normal users who depend upon the easy graphical user interface for their work usually prefer Windows while the professional who needs to get into the core of the system and need a command-line interface prefers to go with Unix or Linux based on their exact requirement. There are several operating systems available in the market which serves the users as per their need. Here in this article, we will be learning about one of the most important Linux based operating systems that works using the same command as used in the Linux operating system.
What is CentOs?
CentOS may be defined as the Linux based operating system that leverages the commands used in Linux in order to serve the users. It has a very simple interface that lets the user perform their task with the ease and comfort of enjoying the interactive interface. There are various plus points of using the centOS over other operating systems, and one of the most important positive points is its lightweight. The hardware required to run CentOS is not that high, and it can be run over any machine that has 2GB of RAM and 200GB of the hard disk.
It severs the purpose of normal usage very well, and if the user wants to perform any heavy task, they are suggested to move to Linux OS. The CentOS can also be explained as an operating system belonging to the Linux family that offers the user’s interactive GUI-based interface.
When compared with Windows, the function available in CentOS is a bit less comparatively. But in comparison to any other distribution of Linux, the amazing GUI of CentOS gives it an edge. It doesn’t require any specialization to work with CentOS as you will be able to work with it if you have an idea about the basic commands of Linux. In the next section, we will learn about some of the essential commands used to work with CentOS.
CentOS Commands
In order to work with CentOS, there are several commands that can be used to interact with the machine. The interesting thing about CentOS is that its commands are similar to the Linux commands, and anyone who has an idea about Linux commands will work with CentOS. Below are some of the important commands that can be used very often while working with CentOS.
- Pwd Command
pwd command is used to get the pathname where the current user is actually present. In the terminal, when the user moves from one directory to another, there is no display section showing which directory the user is actually present. Using the pwd command will give the pathname to the user confirming their current directory.
- Mkdir Command
Mkdir command is used to create a new directory in the computer disk where the other directories or files could be stored. Mkdir command has to be followed by an arbitrary name that will be the name of the newly-created directory.
- systemctl Command
The systemctl command is used to manage the operating system services and start-ups. This is considered one of the very important commands for working with the services that work in the operating system.
- Sudo Command
Sudo is the command that lets any other command with the privileges of the root user. Any command is written together with sudo must execute as it is like an instruction from the owner of the system or the user who has created the system.
- Firewall-cmd Command
The Firewall-cmd Command is used to work with the CentOS firewall or to work with the security options. It is the command mainly used by the security professional whose role is to protect the system against cyber attacks.
- Chmod Command
Chmod command is used to change the permission of any file. This command is used very frequently when it comes to adding or removing the permission of any file stored in the system.
- Yum Command
The Yum command is used to install the new software and packages in the centOS. While adding new software to the operating system through the command-line interface, it is used.
- Unzip Command
The Unzip command is used to unzip the archived files. It is the important command and the only one command available in CentOS for unzipping the archived files. It can also be used the same way in Linux.
- Clear Command
The Clear command is used to clear the terminal window that is being filled with the command and the outputs while working with CentOS. It is very simple to use. Once simply written in the terminal will lead to clear everything on the screen.
- Who Command
This command is used to find out who is the current user using the system. It can be used just by writing who in the terminal when it comes to finding out the name of the users who are using the current system.
- Nano Command
The Nano command is used to work with the text editor. While using this command in the terminal, it has to be followed by the name of the file that has to be edited. It is actually used when you want to edit the text in the terminal.
- Cd Command
Cd command is used to change the directory when the user has to move from one directory to another. It is a very important command as it is the only option that makes it possible for the users to change the dictionary.
Conclusion
The centOS may be defined as the operating system that belongs to the Linux family and offers an interactive graphical user interface. It works using the same commands that are being used by the Linux operating system. The easy to work with the Linux operating system’s lightweight distribution is very useful for normal or professional users.
Recommended Articles
This has been a guide to CentOS Commands. Here we discussed the basic concepts and Different types of CentOS Commands in a concise manner. You can also go through our other suggested articles to learn more –