User and group management
Proper access control starts with user and group management. Here are the must-know commands:- useradd, adduser, usermod, userdel – Create, modify, or delete user accounts.
- groupadd, groupmod, groupdel, gpasswd – Manage groups and their permissions.
- passwd – Set or reset user passwords.
- id, whoami, groups – Check user ID and group affiliations.
- chage – Configure password expiration and aging.
File and directory operations
Navigating the file system and manipulating files is fundamental:- cd, pwd, ls – Move around and inspect directory contents.
- cp, mv, rm, mkdir, rmdir – Copy, move, and delete files and directories.
- find, locate, which, whereis – Search for files or commands.
- stat, file, touch – Retrieve file metadata or create placeholder files.
File permissions and ownership
Keep your data secure with proper permission settings:- chmod, chown, chgrp – Set file permissions and change ownership.
- umask – Define default permissions for new files.
- ls -l, getfacl, setfacl – View and manage Access Control Lists (ACLs).
Package management
Install and update software with these distribution-specific tools:- Debian/Ubuntu: apt, dpkg
- RHEL/CentOS/Fedora: yum, dnf, rpm
- Universal: snap, flatpak
Networking and connectivity
Diagnose and manage network issues with these tools:- ip, ifconfig, ip a, ip r – Configure and inspect network interfaces and routes.
- ping, traceroute, netstat, ss – Test connectivity and analyze network activity.
- nmap, telnet, curl, wget, dig, nslookup – Test open ports and domain lookups.
- hostname, nmcli, ethtool, tcpdump – View and troubleshoot host and network configs.
Log management and system services
Logs are your best friend for diagnosing issues:- journalctl – View systemd logs.
- systemctl, service – Start, stop, and manage services.
- logger – Add custom entries to logs.
- rsyslog, logrotate – Configure logging and automatic log file rotation.
File compression and archiving
Handle backups and storage efficiently:- tar, gzip, gunzip, bzip2, xz, zip, unzip – Compress and extract files.
Task scheduling
Run scripts or updates automatically with these schedulers:- cron, crontab – Schedule recurring tasks.
- at, batch – Schedule one-time tasks.
Disk and file system management
Monitor and manage disk usage and partitions:- mount, umount – Mount and unmount file systems.
- lsblk, blkid, fdisk, parted – Inspect disks and partitions.
- mkfs, fsck, tune2fs – Create or check file systems.
- lsof, fuser – List open files and identify which processes use them.
Backup and restore
Avoid data disasters with these backup tools:- rsync, scp, dd, tar, cpio – Copy and archive data securely.
- timeshift, borg, restic – Create and restore system snapshots.
Security and access control
Lock down your server with powerful security tools:- sudo, su – Run commands as root or switch users.
- ssh, sshd – Secure remote connections.
- iptables, firewalld, ufw – Manage firewall rules.
- fail2ban, auditctl, semanage – Monitor and block malicious behavior.
Final thoughts
Becoming a pro Linux admin starts with mastering the right command-line tools. Whether you’re troubleshooting a failing service or scheduling automated backups, the Linux terminal gives you powerful control—once you know how to use it.Explore, practice, and refine your use of these commands to build confidence and command over your server environments. A well-tuned CLI skillset is the mark of a true systems professional.Our services:
- Staffing: Contract, contract-to-hire, direct hire, remote global hiring, SOW projects, and managed services.
- Remote hiring: Hire full-time IT professionals from our India-based talent network.
- Custom software development: Web/Mobile Development, UI/UX Design, QA & Automation, API Integration, DevOps, and Product Development.
Our products:
- ZenBasket: A customizable ecommerce platform.
- Zenyo payroll: Automated payroll processing for India.
- Zenyo workforce: Streamlined HR and productivity tools.