惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Proofpoint News Feed
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
罗磊的独立博客
F
Future of Privacy Forum
The Register - Security
The Register - Security
MyScale Blog
MyScale Blog
P
Privacy & Cybersecurity Law Blog
V
Visual Studio Blog
T
Tenable Blog
F
Fortinet All Blogs
D
Docker
V
Vulnerabilities – Threatpost
Cyberwarzone
Cyberwarzone
A
Arctic Wolf
T
Threat Research - Cisco Blogs
I
Intezer
T
Tor Project blog
大猫的无限游戏
大猫的无限游戏
MongoDB | Blog
MongoDB | Blog
博客园 - 司徒正美
AWS News Blog
AWS News Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
GRAHAM CLULEY
T
Threatpost
美团技术团队
K
Kaspersky official blog
F
Fox-IT International blog
Hugging Face - Blog
Hugging Face - Blog
Vercel News
Vercel News
P
Palo Alto Networks Blog
Google DeepMind News
Google DeepMind News
T
The Blog of Author Tim Ferriss
S
Schneier on Security
腾讯CDC
Cisco Talos Blog
Cisco Talos Blog
C
Check Point Blog
博客园 - 叶小钗
I
InfoQ
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Blog — PlanetScale
Blog — PlanetScale
F
Full Disclosure
T
True Tiger Recordings
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
E
Exploit-DB.com RSS Feed
L
LINUX DO - 热门话题
J
Java Code Geeks
C
CERT Recently Published Vulnerability Notes

DEV Community

How to Build a High-Performance Image Optimization Pipeline in 5 Minutes Less Toil, More Flow - Automating the Path from Request to Implementation The Code Review Checklist I Actually Use How I run a small blog on Astro 5 + Content Collections Git: Best Practices for Professionals How IBM Bob Became My Everyday Coding Companion Solana Passkey Wallet: Replacing Seed Phrases with SIMD-0075 I built a small browser puzzle game about arrows I wrapped Claude Code in a zsh function. Here's every decision I almost got wrong. Mobile Game Optimization: A Unity Developer's Checklist Git: Best Practices for Beginners Three days I lost chasing a ghost that was already dead on disk Why Too Many Parts Hurt ClickHouse Performance Guardrails for Agent Output: Pluggable Validation Before and After LLM Calls Gemma Forge: Local AI Without the Setup Wall From Half‑dead Prototype to Local‑Only AI Medical Assistant: Rewiring MedClinic with GitHub Copilot Runninig a forkbomb in Jenkins What’s Actually Happening When You Use Git Preventing Recursive Tool Loops in LangChain Agents Building a Rock-Paper-Scissors CLI with TypeScript — Union Types, Conditionals, and Jest Your AI Coding Agent Wastes 80% of Its Context. Fixed That with Graph Theory. Why Flutter Has Become the Go-To Framework for Fintech App Development We built a scripting language just for AI agents. Here's why. Stop building AI inboxes. Build decision layers instead. Meme Monday Why I Built @editora/ui-react? Are AI tools the next level of abstraction in software development? Identity on Solana: Your Wallet Is Your Account One API Call Changed Everything The Internet Career Nobody Talks About Enough: What Is DevRel? Solar Panel Wiring Diagram: Series vs Parallel Hello everyone! Glad to join the dev.to community I Built an AI Agent That Tailors My Resume - Here's How Agents Actually Work I Built a WhatsApp OTP + AI Chatbot Platform for African Businesses MTP Explained — And Why It Matters for Android on Mac Most Beginners Learn Full-Stack Development Backwards GitHub Glow-Up: Open Source, READMEs, Badges, Streaks, Git and gh CLI System Design Cheat Sheet: Concepts Every Developer Should Know Are Junior Developer Roles Actually Dying? A Fresher's Honest Take Using DigitalOcean Droplets as Ephemeral Sandboxes for AI Agents I built a VSCode extension that visualises your code navigation as a call tree — made for legacy codebase pain Vite predev/prebuild: chaining scripts without losing your mind A website to save you from messy browser tabs Dear Web2 Developer... Solana is here calling Postgres JSONB indexes: GIN vs BTREE on the same column The $5 AI That Remembers Everything What are your goals for the week? #180 Zettelkasten for Developers: A Practical Method That Works OpenClaw vs Hermes Agent: Stars, Downloads & Usage 2026 `act` vs. `waitFor` Global Teams Don’t Struggle With Time Zones. They Struggle With Context Python as a JavaScript Dev $5.4 Billion in Damage. 8.5 Million Machines Down. Three YAML Controls Would Have Prevented It. Here's the Structural Analysis. 🚫 Stop Using PN532 V1 for Your NFC Projects (Real Debugging Experience) Probabilistic Graph Neural Inference for smart agriculture microgrid orchestration for extreme data sparsity scenarios Inference Is Becoming the New Steady-State Cost Center Why AI-Generated Code Is Always Good Enough — And Never Great I built a dark admin dashboard template in HTML — no React, no npm, just pure HTML What is the Difference Between Lattice-Based and Hash-Based Signatures? Next.js App Router caching: revalidate, dynamic, and no-store without the folklore Next.js App Router caching: revalidate, dynamic y no-store sin folklore I built Stashly — a full-stack content manager with a rich text editor published: false tags: react, node, mongodb, typescript Why I Started Building React Projects Instead of Just Watching Tutorials ? Every Tool Eventually Becomes Tuesday Nobody Warns You That Real Software Engineering Feels Chaotic Tích hợp VNPay, Stripe trong Odoo 19 BeautifulSoup and Requests for Web Scraping With Python: When Simple Still Works I Was Stuck Debugging React — Then Developer Tools Changed It Buck Converter Ripple: Sizing the Inductor and Capacitor With Confidence AWS Just Made Its MCP Server Generally Available. Here's What It Actually Gives AI Agents. RAMPART Tests Your AI Agents in Dev. What Catches Malicious Tool Calls in Production? Vibe Team Software Engineering: What a Real AI Human Dev Team Workflow Actually Looks Like An npm Package for AI Agent Orchestration Just Shipped With Its Front Door Unlocked. Here's What the CVE Actually Reveals. Microsoft Foundry Just Added CI/CD for AI Agents. Here's What That Actually Changes. The Best Career Insurance Is a Tech Event You Don't Want to Attend Your GitHub Profile Already Tells Recruiters More Than Your Resume. Most Devs Just Don't Surface It. How to Add Execution Budgets to OpenAI Agents SDK Binary Tree Interview Problems: 6 Traversal Patterns, 15 Problems We trained a personal voice DoRA on Qwen3-8B for $1.50 — beat stock model 100% in blind A/B Stop Leaking API Keys: Why I Built a Local-First Vault for Developers 🔐 RAG Explained: How Retrieval-Augmented Generation Actually Works I Built a Fast Async JioSaavn API Wrapper in Python 🎧 chown & chgrp Deploying Your First App on Kubernetes: A Beginner's Guide (Minikube & Kind) Logs in code It's called a PR "review" for a reason DePIN GPU Market: The Failed Job Receipt Developers Should Demand Why Your AI Agent Monitoring is Wrong (And How to Fix It) Lock Down Your Cloud Shares: A Beginner’s Guide to Azure Files Security. Building a Multi-Channel Content Syndication Pipeline with EmDash Plugins Turn Your Phone Into Voice Input for Any React Text Field Which package is bloating your Docker image? Putting Claude Code Under Version Control: Configs Since July, Memory Since April What I Thought DevRel Was vs. What It Actually Is (A Mentee's Honest Take) What I Thought DevRel Was vs. What It Actually Is (A Mentee's Honest Take) 400 Million Tokens Burned Overnight Reviving My Linux Mastery Game from a Merge Conflict — A Finish-Up-A-Thon Comeback Don’t let AI break your collective thinking: a practical guide for engineering teams First Gemma 4 ExecuTorch Deployment on Raspberry Pi 5 — and Why It's 7.7 Slower Than llama.cpp Per-Turn Evaluation: Dynamic Governance for AI Agents
50 Linux Commands Every DevOps Engineer Must Know
pawan nateka · 2026-05-25 · via DEV Community

50 Linux CommandIf you're working in DevOps, Linux is not optional—it's your daily workspace.

Whether you're troubleshooting production issues, deploying applications, checking logs, managing users, or debugging network problems, Linux commands are the tools you’ll use constantly.

In this guide, I’ve compiled 50 essential Linux commands every DevOps engineer should know, organized by category with practical explanations.

Let’s get into it.

1. File & Directory Management

1. pwd — Print Working Directory

Shows your current directory.

pwd

Enter fullscreen mode Exit fullscreen mode

Example output:

/home/pawan/projects

Enter fullscreen mode Exit fullscreen mode

2. ls — List Files

Displays files and directories.

ls -la

Enter fullscreen mode Exit fullscreen mode

3. cd — Change Directory

Move between directories.

cd /var/log

Enter fullscreen mode Exit fullscreen mode

4. mkdir — Create Directory

Create new folders.

mkdir backup

Enter fullscreen mode Exit fullscreen mode

5. rmdir — Remove Empty Directory

Deletes empty folders.

rmdir backup

Enter fullscreen mode Exit fullscreen mode

6. touch — Create Empty File

Create a new file.

touch app.log

Enter fullscreen mode Exit fullscreen mode

7. cp — Copy Files

Copy files or folders.

cp app.conf backup.conf

Enter fullscreen mode Exit fullscreen mode

8. mv — Move or Rename

Move or rename files.

mv old.log new.log

Enter fullscreen mode Exit fullscreen mode

9. rm — Remove Files

Delete files/directories.

rm -rf temp/

Enter fullscreen mode Exit fullscreen mode

10. find — Search Files

Locate files quickly.

find /var/log -name "*.log"

Enter fullscreen mode Exit fullscreen mode

2. File Viewing & Text Processing

11. cat

Display file content.

cat config.yml

Enter fullscreen mode Exit fullscreen mode

12. less

Read large files interactively.

less /var/log/syslog
``

## 13. `head`

View first lines.

Enter fullscreen mode Exit fullscreen mode


bash
head -20 app.log


## 14. `tail`

View last lines.

Enter fullscreen mode Exit fullscreen mode


bash
tail -f app.log


## 15. `grep`

Search text patterns.

Enter fullscreen mode Exit fullscreen mode


bash
grep "ERROR" app.log


## 16. `sed`

Edit/replace text.

Enter fullscreen mode Exit fullscreen mode


bash
sed 's/dev/prod/g' config.txt


## 17. `awk`

Powerful text processing.

Enter fullscreen mode Exit fullscreen mode


bash
awk '{print $1}' users.txt



## 18. `cut`

Extract columns.

Enter fullscreen mode Exit fullscreen mode


bash
cut -d ":" -f1 /etc/passwd


## 19. `sort`

Sort content.

Enter fullscreen mode Exit fullscreen mode


bash
sort names.txt


## 20. `uniq`

Remove duplicates.

Enter fullscreen mode Exit fullscreen mode


bash
uniq users.txt


# 3. Permissions & Ownership

## 21. `chmod`

Change permissions.

Enter fullscreen mode Exit fullscreen mode


bash
chmod 755 deploy.sh


## 22. `chown`

Change ownership.

Enter fullscreen mode Exit fullscreen mode


bash
chown ubuntu:ubuntu app.log


## 23. `chgrp`

Change group ownership.

Enter fullscreen mode Exit fullscreen mode


bash
chgrp developers script.sh


## 24. `umask`

Default permission settings.

Enter fullscreen mode Exit fullscreen mode


bash
umask


# 4. Process Management

## 25. `ps`

Show running processes.

Enter fullscreen mode Exit fullscreen mode


bash
ps aux


## 26. `top`

Live process monitoring.

Enter fullscreen mode Exit fullscreen mode


bash
top


## 27. `htop`

Interactive process viewer.

Enter fullscreen mode Exit fullscreen mode


bash
htop


## 28. `kill`

Terminate process.

Enter fullscreen mode Exit fullscreen mode


bash
kill 1234


## 29. `killall`

Kill by process name.

Enter fullscreen mode Exit fullscreen mode


bash
killall nginx


## 30. `jobs`

Background jobs.

Enter fullscreen mode Exit fullscreen mode


bash
jobs


## 31. `bg`

Resume in background.

Enter fullscreen mode Exit fullscreen mode


bash
bg


## 32. `fg`

Bring to foreground.

Enter fullscreen mode Exit fullscreen mode


bash
fg


# 5. Networking Commands

## 33. `ping`

Check connectivity.

Enter fullscreen mode Exit fullscreen mode


bash
ping google.com


## 34. `curl`

Transfer data / API testing.

Enter fullscreen mode Exit fullscreen mode


bash
curl https://api.github.com


## 35. `wget`

Download files.

Enter fullscreen mode Exit fullscreen mode


bash
wget https://example.com/file.zip


## 36. `ssh`

Remote login.

Enter fullscreen mode Exit fullscreen mode


bash
ssh user@server-ip


## 37. `scp`

Secure file transfer.

Enter fullscreen mode Exit fullscreen mode


bash
scp app.tar.gz user@server:/tmp


## 38. `ss`

Socket statistics.

Enter fullscreen mode Exit fullscreen mode


bash
ss -tulnp


## 39. `dig`

DNS lookup.

Enter fullscreen mode Exit fullscreen mode


bash
dig google.com


## 40. `nslookup`

DNS troubleshooting.

Enter fullscreen mode Exit fullscreen mode


bash
nslookup google.com


# 6. Disk & Storage

## 41. `df`

Disk usage.

Enter fullscreen mode Exit fullscreen mode


bash
df -h


## 42. `du`

Directory size.

Enter fullscreen mode Exit fullscreen mode


bash
du -sh /var/log


## 43. `lsblk`

Block devices.

Enter fullscreen mode Exit fullscreen mode


bash
lsblk


## 44. `mount`

Mount filesystem.

Enter fullscreen mode Exit fullscreen mode


bash
mount /dev/sdb1 /mnt



## 45. `umount`

Unmount filesystem.

Enter fullscreen mode Exit fullscreen mode


bash
umount /mnt


# 7. System Information

## 46. `uname`

Kernel/system info.

Enter fullscreen mode Exit fullscreen mode


bash
uname -a


## 47. `hostname`

Machine name.

Enter fullscreen mode Exit fullscreen mode


bash
hostname


## 48. `whoami`

Current user.

Enter fullscreen mode Exit fullscreen mode


bash
whoami



## 49. `uptime`

System uptime/load.

Enter fullscreen mode Exit fullscreen mode


bash
uptime



## 50. `free`

Memory usage.

Enter fullscreen mode Exit fullscreen mode


bash
free -h





# Final Thoughts

Linux commands are the foundation of DevOps work.

You don’t need to memorize everything on day one—but becoming comfortable with these commands will make your life significantly easier in real-world infrastructure, automation, and troubleshooting tasks.

**Which Linux command do you use every day? Drop it in the comments.**


Enter fullscreen mode Exit fullscreen mode