Skip to main content

Command Palette

Search for a command to run...

๐Ÿง Top Linux Commands Every DevOps Beginner Must Know (With Examples)

Updated
โ€ข3 min read

๐Ÿ“Œ 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.