CentOS & Enterprise Linux Administration
CentOS and Enterprise Linux Commands: Essential Operations for Server Management
Enterprise Linux distributions — including CentOS Stream, Red Hat Enterprise Linux (RHEL), and Rocky Linux — power millions of corporate servers, cloud environments, and database clusters across the globe. Known for stability, robust package management, and strict security policies, mastering RHEL-based distributions is an essential skill for enterprise system engineers.
Developing expertise in enterprise Linux commands, package administration, and service management using practical system administration guides accelerates your path toward cloud engineering and DevOps certification.
Get Uk_77’s stories in your inbox
Join Medium for free to get updates from this writer.
In this reference guide, we examine essential terminal commands for package management, service control, and system monitoring on enterprise Linux platforms.
1. Package Management with YUM and DNF
RHEL-based systems utilize the RPM package format, managed via high-level package managers like yum or dnf.
- Updating System Packages:
- Bash
sudo dnf update -y- Installing and Removing Software:
- Bash
sudo dnf install httpd -y sudo dnf remove httpd- Searching Repositories:
- Bash
dnf search nginx
2. Service Management with systemctl
Enterprise Linux uses systemd as its initialization framework to manage background daemons and system services.
- Start, Stop, and Restart a Service:
- Bash
sudo systemctl start firewalld sudo systemctl stop firewalld sudo systemctl restart firewalld- Enable Service at System Boot:
- Bash
sudo systemctl enable httpd- Check Service Status:
- Bash
systemctl status httpd
3. Managing Enterprise Security with SELinux and Firewalld
CentOS and enterprise Linux distributions ship with Security-Enhanced Linux (SELinux) enabled by default to enforce mandatory access controls.
+-----------------------------------------------------------+
| Incoming Traffic |
+-----------------------------------------------------------+
|
v
+-----------------------------------------------------------+
| Layer 1: Firewalld (Port Blocking) |
+-----------------------------------------------------------+
|
v
+-----------------------------------------------------------+
| Layer 2: SELinux Context (File Policies) |
+-----------------------------------------------------------+
|
v
+-----------------------------------------------------------+
| Application Target |
+-----------------------------------------------------------+- Checking SELinux Status:
- Bash
sestatus- Opening Firewall Ports (Firewalld):
- Bash
sudo firewall-cmd --permanent --add-service=http sudo firewall-cmd --reload
Building proficiency in enterprise Linux administration through interactive Root Learning modules equips you with the hands-on commands needed to manage secure production servers confidently.








