As a Linux System Administrator, mastering the command line is key to efficiently managing servers, troubleshooting issues, and automating tasks. Whether you’re working with bare metal, cloud VMs, or containerized environments, these 10 Linux commands are the backbone of daily sysadmin operations.
ls – List Directory ContentsThe ls command lists files, directories, and their attributes.
ls -lah -l → detailed (long) listing-a → include hidden files-h → human-readable file sizesTip: Combine it with sort or grep to find files quickly.
cd – Change DirectorySwitch directories easily with cd.
cd /var/log Shortcut: cd - → go back to the previous directory.
grep – Search Inside Filesgrep searches for text patterns within files.
grep -Ri "error" /var/log/ -R → recursive search-i → case-insensitiveUse case: Perfect for scanning logs or config files for keywords.
top / htop – Monitor System ProcessesMonitor performance and resource usage in real-time.
top Or install the enhanced version:
htop View CPU, memory, and process usage, and interactively manage processes.
df – Disk Space UsageQuickly check disk space usage.
df -h -h → human-readable outputdf -Th → show filesystem typesdu – Disk Usage per DirectoryFind which directories consume the most space.
du -sh /var/* Combine with sort for better insight:
du -sh * | sort -h tar – Archive and Extract FilesCreate or extract compressed files.
# Create archive
tar -czvf backup.tar.gz /etc
# Extract archive
tar -xzvf backup.tar.gz
c → createx → extractz → gzip compressionv → verbosef → filechmod & chown – Manage PermissionsSet or change file permissions and ownership.
chmod 644 file.txt
chown root:root file.txt
Tip: Always double-check permissions before changing system files.
systemctl – Manage ServicesControl services and daemons on systemd-based distributions.
systemctl status nginx
systemctl restart sshd
systemctl enable mariadb
Actions: start, stop, restart, status, enable, disable
journalctl – View System LogsAccess and filter logs stored by systemd.
journalctl -u nginx --since "1 hour ago" -u → specific service--since / --until → filter by time range|)Chain commands together to process data efficiently:
ps aux | grep nginx | awk '{print $2}' This example finds all Nginx process IDs — showcasing the power of Linux pipelines.
These 10 Linux commands form the foundation of system administration. Once you’re comfortable with them, you’ll troubleshoot faster, automate routine tasks, and manage complex systems with confidence.
If you’re new to Linux or preparing for certifications like LFCS or RHCSA, mastering these commands is your first step toward becoming a professional sysadmin.
Tags: Linux, SysAdmin, Command Line, Tutorial, Tips
Category: Linux Basics
Introduction WireGuard is a fast, lightweight, and modern VPN protocol designed for simplicity and performance.If…
Securing your website with HTTPS is essential for privacy, SEO ranking, and user trust. Let’s…
If you manage Linux servers regularly, you know how important SSH (Secure Shell) is. Whether…
If you’re new to Linux or thinking about switching from Windows or macOS, this guide…
Introduction Site Reliability Engineering (SRE) has become a critical discipline in modern IT operations. The…
Updated: August 17, 2025 A practical guide to the best free CRM (Customer Relationship Management)…
This website uses cookies.