Here are 10 foundational Linux commands that demonstrate basic terminal competency:
- ls — List directory contents
bash
ls -la /home/user
- cd — Change directory
bash
cd /var/log
- pwd — Print working directory
bash
pwd
- cat — Display file contents
bash
cat /etc/os-release
- grep — Search text using patterns
bash
grep -i “error” /var/log/syslog
- chmod — Change file permissions
bash
chmod 755 script.sh
- ps — Display running processes
bash
ps aux | grep nginx
- sudo — Execute commands with elevated privileges
bash
sudo systemctl restart networking
- df — Report filesystem disk space usage
bash
df -h
- ssh — Securely connect to a remote host
bash
ssh user@192.168.1.100
Together these cover navigation (ls, cd, pwd), file inspection (cat, grep), permissions (chmod, sudo), system monitoring (ps, df), and remote access (ssh) — the core muscle memory for anyone comfortable at a Linux prompt.
