๐ง Top Linux Commands Every DevOps Beginner Must Know (With Examples)
๐ Introduction
If you are starting your journey in Linux, DevOps, or Cloud Computing, Linux commands are not optional โ they are mandatory.
Most production servers run on Linux, and as a DevOps engineer, youโll interact with servers daily for:
Deployment
Monitoring
Debugging
Automation
In this post, Iโm sharing a structured Linux commands cheat sheet (basic + advanced) with clear explanations and real examples, especially useful for beginners and DevOps learners.
๐ If you found this article helpful and want to follow my DevOps learning journey,
connect with me on LinkedIn ๐ RamuChelloju
๐งฑ 1. Basic Linux Commands
These commands are used every day on any Linux system.
๐น List files and directories
ls
ls -l
ls -a
๐น Change directory
cd /var/log
cd ..
๐น Show current path
pwd
๐น Create and remove directories
mkdir app
rmdir app
๐น Copy and move files
cp file1 file2
cp -r dir1 dir2
mv oldname newname
๐น Create empty file
touch test.txt
๐ 2. File Operations
Used to read, search, compress, and manage files.
๐น View file content
cat file.txt
less largefile.log
๐น Search inside files
grep "error" app.log
๐น Archive and compress
tar -cvf backup.tar folder/
zip files.zip file1 file2
unzip files.zip
๐น Change permissions and ownership
chmod 755 script.sh
chown user:group file.txt
โ๏ธ 3. Process & System Monitoring
Helps you understand what is running on the server.
๐น View running processes
ps aux
๐น Live system usage
top
htop
๐น Run process after logout
nohup python app.py &
๐น Process tree
pstree
๐น View system logs
journalctl
journalctl -u nginx
๐ฝ 4. Disk & Memory Commands
Used heavily during production issues.
๐น Disk usage
df -h
du -sh /var/log
๐น Memory usage
free -h
๐น Block devices
lsblk
๐น Mount and unmount
mount /dev/xvdf /data
umount /data
๐น Sync files
rsync -av source/ destination/
๐ 5. Networking Commands
Used for server access and debugging.
๐น Check connectivity
ping google.com
๐น Test APIs and URLs
curl https://example.com
๐น Download files
wget https://example.com/file.zip
๐น Connect to remote server
ssh -i key.pem user@server_ip
๐น Copy files between servers
scp file.txt user@server:/path
๐ 6. Permissions & Ownership (Very Important)
Most Linux issues happen due to wrong permissions.
๐น File permissions
chmod 644 file.txt
chmod 755 script.sh
๐น Change owner
chown ec2-user:ec2-user file.txt
๐น Sudo access
sudo command
๐น Edit sudoers safely
visudo
๐ How DevOps Engineers Use These Commands
As a DevOps engineer, youโll use Linux commands to:
Debug production issues
Check server health
Deploy applications
Automate tasks using shell scripts
Manage cloud servers (AWS EC2, GCP, Azure)
๐ Strong Linux basics = Strong DevOps career
๐ง Learning Tips for Beginners
Practice daily (donโt just read)
Break things and fix them
Focus on understanding, not memorizing
Combine Linux with Git, Docker, and Cloud
โ Conclusion
Linux commands are the foundation for DevOps, Cloud, and SRE roles.
Once you master these basics, learning tools like Docker, Kubernetes, Jenkins, and Terraform becomes much easier.
If you are a beginner โ start slow, stay consistent, and practice daily.


