Guides
Linux Commands Every DevOps Engineer Uses Daily By Ravindra Bagale , DevOps trainer · LinkedIn · Published: 28 October 2026 · Last updated: 28 October 2026
These Linux commands are the daily language of DevOps on Amazon Linux and Ubuntu. Learn names with sample output — the way Infosys, TCS and product on-call teams triage.
English मराठी हिंदी
Friends, memorize the order: disk, process, ports, logs. Chala mitrano — type them until muscle memory.
मित्रांनो, क्रम लक्षात ठेवा: disk, process, ports, logs. Chala mitrano — स्नायूंच्या स्मृतीत येईपर्यंत टाइप करा.
मित्रों, क्रम याद रखें: disk, process, ports, logs। Chala mitrano — मांसपेशी की याद तक टाइप करें।
Quick answer
Hold this vertical picture:
Disk with df/du.
Process with ps/uptime.
Ports with ss/curl.
Services with systemctl/journalctl.
Same order every outage.
Language: English · मराठी · हिंदी
df / du / free Disk and memory
ps / top / uptime CPU and load
ss / curl Ports and HTTP
systemctl / journalctl Service + logs
Daily Linux outage path
Why these commands matter every day
When Flipkart sale traffic or an Infosys client portal is slow, seniors do not open a textbook. They run disk, process, port and log checks.
Why: Fast triage saves MTTR.
What: A short daily set with sample output.
How: Practice on your own VM. Read every column.
Concept 1: Disk and memory
Why: Full disks kill apps silently.
What: df, du, free, df -i.
How: Check / and /var first.
Example 1: Disk free
Type this:
You will see:
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p1 8.0G 3.1G 4.9G 39% /
What it means: Root at 39 percent. Above 90 percent needs cleanup.
Example 2: Biggest dirs
Type this:
du -h -d1 /var 2 >/dev/null | sort -h | tail -3
You will see:
1.2G /var/log
2.0G /var/lib
3.4G /var
What it means: /var/log often fills first on app servers.
Example 3: Inode check
Type this:
You will see:
/dev/nvme0n1p1 524288 81234 443054 16% /
What it means: Inode exhaustion can block creates even when bytes remain.
Concept 2: Processes and load
Why: One runaway process can starve the box.
What: ps, top, uptime.
How: Sort by CPU; know load averages.
Example 4: Top CPU snapshot
Type this:
ps aux --sort= -%cpu | head -n 4
You will see:
USER PID %CPU %MEM COMMAND
root 1 0.0 0.2 systemd
...
What it means: Read the COMMAND column in outages.
Example 5: Memory free
Type this:
You will see:
total used free
Mem: 3.7Gi 1.2Gi 1.1Gi
What it means: Watch available, not only free.
Example 6: Load average
Type this:
You will see:
14:02:11 up 3 days, 2 users, load average: 0.15, 0.10, 0.05
What it means: Three numbers: 1, 5, 15 minute averages.
Concept 3: Ports and HTTP
Why: Wrong bind address wastes hours.
What: ss, curl, scp pattern.
How: Confirm listen ports before restart wars.
Example 7: Listen ports
Type this:
You will see:
Netid State Local Address:Port
tcp LISTEN 0.0.0.0:22
tcp LISTEN 0.0.0.0:80
What it means: See who owns port 80 before nginx fights.
Example 8: HTTP check
Type this:
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/
You will see:
What it means: 200 means the edge answered. Not a full app health check.
Example 9: Copy with scp mind-set
Type this:
printf '%s\n' 'scp report.txt ec2-user@10.0.0.5:/home/ec2-user/'
You will see:
scp report.txt ec2-user@10.0.0.5:/home/ec2-user/
What it means: Use keys; never paste passwords into scripts.
Concept 4: Services and journals
Why: systemctl is the control plane for services.
What: is-active, status, journalctl -u.
How: Always read logs before a blind restart.
Example 10: Service active?
Type this:
systemctl is-active sshd || systemctl is-active ssh
You will see:
What it means: active means accepting connections.
Example 11: Recent journal
Type this:
journalctl -u sshd -n 3 --no-pager 2 >/dev/null || journalctl -u ssh -n 3 --no-pager
You will see:
-- Logs begin --
... Started OpenSSH ...
What it means: journalctl is the first log stop on systemd hosts.
Example 12: Follow pattern
Type this:
printf '%s\n' 'ss -> process -> journalctl -> restart'
You will see:
ss -> process -> journalctl -> restart
What it means: Daily outage order at Infosys-style accounts.
Pocket order
df -h /
free -h
ss -tulpn
systemctl status NAME
journalctl -u NAME -n 50
Suppose: Pune colocated app server
Disk full at 2 a.m. du finds /var/log. Clean, then add logrotate.
Suppose: London SaaS API
ss shows nothing on 443. Fix the listen address, not the code first.
Ravindra Bagale's Tip
English मराठी हिंदी
On Amazon Linux and Ubuntu labs used at TCS and Capgemini projects, these ten commands solve most night calls. Learn sample output, not only names.
Amazon Linux आणि Ubuntu labs वर TCS/Capgemini style रात्रीच्या calls मध्ये हे दहा commands मदत करतात. फक्त नावे नव्हे, sample output शिका.
Amazon Linux और Ubuntu labs पर TCS/Capgemini style रात की calls में ये दस commands मदद करते हैं। सिर्फ़ नाम नहीं, sample output सीखें।
Check yourself (quiz)
Q1. Which command shows disk percent on /? df -h /
Q2. What does ss -tulpn show? Listening TCP/UDP ports and processes.
Q3. Why journalctl before restart? So you know why it failed.
Q4. What is load average? 1, 5 and 15 minute run-queue averages.
Q5. First folder to check when disk is full? Often /var/log.
Reading tracking
Mark this guide when you finish. Your browser remembers it on this device.
Mark as read
Daily path: disk → process → ports → logs. Practice output, not only names.
Did you understand? Let us try it once more.
Live batch madhe shikaycha aahe? Online / offline training with Ravindra Bagale – AWS, DevOps, Data Analytics, Power BI, Cyber Security.
Enquire now → Chat on WhatsApp
Frequently asked questions Which command shows disk percent on /? df -h /
What does ss -tulpn show? Listening TCP/UDP ports and processes.
Why journalctl before restart? So you know why the service failed.
What is load average? 1, 5 and 15 minute run-queue averages.
First folder when disk is full? Often /var/log.
Daily outage order? disk → process → ports → logs.
How to Install Nginx on Amazon Linux 2023 (EC2) How to SSH into EC2 from Windows, Mac and Linux How to Launch an EC2 Instance in AWS (Step by Step) How to Install Apache (httpd) on Amazon Linux 2023 EC2 How to Fix Permission denied (publickey) on AWS EC2 How to Open Port 80 and 443 in an EC2 Security Group How to Attach an Elastic IP to an EC2 Instance How to Host a Static Website on EC2 with Nginx How to Connect a GoDaddy Domain to AWS EC2 How to Install a Free SSL Certificate on EC2 (Certbot) How to Install WordPress on AWS EC2 (Amazon Linux 2023) How to Increase EBS Volume Size Without Downtime How to Attach an IAM Role to an EC2 Instance How to Install Docker on Amazon Linux 2023 (EC2) How to Install and Configure AWS CLI (Windows, Mac, Linux) How to Set Up an AWS Billing Alarm and Budget (Free Tier) How to Host a Static Website on Amazon S3 How to Create an IAM User with MFA (Stop Using Root) How to Set Up an Application Load Balancer for Two EC2s How to Create an RDS MySQL Database and Connect from EC2 Your First AWS Lambda Function in Python (Console) How to Install WordPress Plugins and Themes Without FTP Nginx Config Explained: Change Port, Root and Index (AL2023) How to Create a Custom VPC in AWS: Subnets, IGW and Routes AWS VPC CIDR and Subnet Calculation Explained Public vs Private Subnet in AWS: The Route Table Difference How to Block an IP Address or IP Range Using AWS NACL Security Group vs NACL in AWS: Differences with Examples How to Set Up a NAT Gateway for a Private Subnet in AWS How to SSH into a Private EC2 Through a Bastion (Jump) Host 3-Tier Architecture on AWS: Nginx, PHP and MySQL in a VPC What Is Phishing and How to Spot It What Is Ransomware and How to Protect Yourself How to Enable MFA on Google, Microsoft and AWS OWASP Top 10 Explained Simply (2025) What Is SQL Injection and How to Prevent It How to Set Up SPF, DKIM and DMARC for Email How to Harden a Linux Server (Checklist) How to Use Nmap for Basic Network Scanning (Ethical Lab) How to Analyse a Phishing Email Like a SOC Analyst Incident Response Plan for Beginners (First 24 Hours) What Is Malware? Types and How to Protect Yourself How to Set Up a Password Manager (Beginner Guide) EDR vs Antivirus: What’s the Difference What Is SIEM? How SOC Analysts Use It What Is a Data Breach? What to Do If Your Data Was Exposed How Does a Firewall Work? (Beginner Explainer) What Is a VPN and When Should You Use One? Zero Trust Security Explained Simply What Is XSS (Cross-Site Scripting) and How to Prevent It How to Secure Your Home Wi‑Fi Network (Step-by-Step) Vulnerability Management: CVEs, KEV, Patching and Verification Windows Event Logs and Sysmon for Beginner SOC MITRE ATT&CK + Your First Sigma Detection Rule (Defence) Cloud IAM Least Privilege AI Security: Defend Prompt Injection and Data Leakage SBOM, Dependency Risk and Secret Leaks Wireshark Packet Analysis for Beginners (Defender View) Backup and Disaster Recovery: RPO, RTO and Restore Testing Cryptography, TLS, Certificates and PKI in Practice Safe Metasploitable / Vulnerable Home Lab Setup What Is Penetration Testing? (Ethical, Authorised Only) Secure REST APIs with OWASP API Security Top 10 Threat Hunting for Beginners (Defence) Kubernetes Security Basics for Defenders DevSecOps Security Pipeline (SAST, SCA, Secrets) Python for SOC Analysts (Defence Automation) Active Directory Hardening and Monitoring (Defender Guide) Machine Identity Security: Service Accounts, Keys and Workloads STRIDE Threat Modeling Guide for Builders and Defenders Digital Forensics for Beginners: Evidence, Hashes and Timelines OT / ICS Cybersecurity Monitoring Lab (Safe Education) What Is Cloud Security? Beginner’s Guide AWS Security Best Practices Checklist What Is a SOC? What Does a SOC Analyst Do? How to Write a Cybersecurity Incident Report Azure Cloud Security Basics for Beginners Cybersecurity Skills Companies Hire For (2026) 50 Cybersecurity Interview Questions and Answers (Basics) 50 SOC Analyst Interview Questions and Answers 50 Network Security Interview Questions and Answers 50 Cloud / AWS Security Interview Questions and Answers 50 IAM, MFA and Zero Trust Interview Questions and Answers AppSec OWASP Interview Questions (50) — SQLi, XSS, API Linux Security Interview Questions (50) — Hardening & Commands Incident Response Interview Questions (50) — IR / DFIR Beginner Ethical Hacking & Pentest Interview Questions (50) — Concepts Python Scripting for SOC Interview Questions (50) How Android Phone Hacking Happens (Defence Guide) Android Device Cloning Risks and Defence How Android Data Theft Happens — and How to Defend Android Safe App Install and Sideload Risks Android Malware and Spyware: Signs, Remove and Protect Android Banking OTP, SIM Swap and MFA Protection Lost or Stolen Android: Find, Lock and Remote Wipe Android Public Wi‑Fi and Hotspot Risks How iPhone Hacking Happens (Defence Guide) Apple ID and iCloud Takeover Defence iPhone Data Theft Risks and Defence iPhone App, Profile and MDM Risks Stolen or Lost iPhone: Find My and Lockdown Mode iPhone Banking OTP, SIM Swap and MFA Protection Signs Your iPhone May Be Compromised How Windows Laptop Hacking Happens (Defence Guide) Windows Malware and Ransomware Protection Windows Safe Software Install Habits Windows Update and Microsoft Defender Basics Windows Account, MFA and BitLocker Hardening Windows Remote Access: RDP and AnyDesk Risks Windows Data Theft: Browser and USB Defence Windows Laptop Stolen or Infected: Recover Checklist Power BI Desktop vs Service vs Mobile Explained Install Power BI Desktop and Build Your First Report Connect Excel and CSV Files to Power BI Measures vs Calculated Columns in Power BI Power Query vs DAX: What Goes Where What Is DAX? Beginner Guide for Power BI How CALCULATE Works with Filter Context SUM vs SUMX in Power BI DAX Build Your First Power BI Dashboard How to Use Slicers in Power BI Power BI File Types: PBIX, PBIT and PBIDS Connect SQL Server to Power BI (Import vs DirectQuery) Power BI Import vs DirectQuery vs Dual Power BI Fields, Filters and Visualizations Panes Turn Off Auto Date/Time in Power BI DAX Row Context vs Filter Context DAX Context Transition with CALCULATE Using FILTER Inside CALCULATE in DAX DAX ALL, ALLEXCEPT, ALLSELECTED and REMOVEFILTERS DAX RELATED and RELATEDTABLE DAX KEEPFILTERS with CALCULATE DAX IF and SWITCH Measures DAX DIVIDE for Safe Percentages DAX Year-to-Date TOTALYTD and DATESYTD DAX Month-to-Date and Quarter-to-Date DAX Same Period Last Year and YoY DAX Running Totals DAX RANKX DAX Percentage of Total with ALLSELECTED DAX USERELATIONSHIP for Inactive Relationships DAX VAR and RETURN DAX COUNT, COUNTA, DISTINCTCOUNT and COUNTROWS DAX Rolling 12-Month Average DAX CALCULATETABLE vs FILTER Intermediate DAX Patterns in Power BI How to Choose a Chart in Power BI Power BI Matrix Visual Power BI KPI, Card and Scorecard Power BI Report Page Tooltips Power BI Drill-through Pages Power BI Bookmarks and Buttons Power BI Conditional Formatting Power BI Hierarchy and Drill Down Power BI Field Parameters Power BI Report Layout Design Power Query Applied Steps Power Query Data Types Power Query Duplicate vs Reference Star Schema in Power BI Fact and Dimension Tables in Power BI Power BI Relationships: One to Many Power BI Cardinality and Filter Direction Star vs Snowflake Schema in Power BI Composite Models in Power BI Publish a Power BI Report to the Service Power BI Workspaces and Roles Power BI Apps for Sharing Reports Power BI Dashboard vs Report How to Share a Power BI Report Row-Level Security in Power BI What Is DevOps? Beginner Guide DevOps म्हणजे काय? नवशिक्यांसाठी मार्गदर्शक DevOps क्या है? शुरुआती guide Git Basics for DevOps Beginners DevOps नवशिक्यांसाठी Git Basics DevOps शुरुआती के लिए Git Basics Git Branching and Pull Requests for Beginners नवशिक्यांसाठी Git Branching आणि Pull Requests शुरुआती के लिए Git Branching और Pull Requests Install Docker on EC2 for Beginners नवशिक्यांसाठी EC2 वर Docker Install शुरुआती के लिए EC2 पर Docker Install Your First Dockerfile for Beginners नवशिक्यांसाठी पहिला Dockerfile शुरुआती के लिए पहला Dockerfile Docker Compose for Beginners नवशिक्यांसाठी Docker Compose शुरुआती के लिए Docker Compose Your First GitHub Actions Pipeline तुमची पहिली GitHub Actions Pipeline आपकी पहली GitHub Actions Pipeline Jenkins Pipeline for Beginners नवशिक्यांसाठी Jenkins Pipeline शुरुआती के लिए Jenkins Pipeline Your First Ansible Playbook तुमचा पहिला Ansible Playbook आपका पहला Ansible Playbook Terraform First Apply for Beginners नवशिक्यांसाठी Terraform First Apply शुरुआती के लिए Terraform First Apply DevOps Roadmap 2026: What to Learn in Order DevOps Roadmap 2026: काय शिकावं आणि कोणत्या क्रमाने DevOps Roadmap 2026: क्या सीखें और किस क्रम में DevOps vs SRE vs Platform Engineer: Which Role Fits You? DevOps vs SRE vs Platform Engineer: तुमच्यासाठी कोणती भूमिका? DevOps vs SRE vs Platform Engineer: आपके लिए कौन सी भूमिका? DevOps Engineer Resume Skills Checklist (Fresher and 2+ Years) DevOps Engineer Resume Skills Checklist (Fresher आणि 2+ Years) DevOps Engineer Resume Skills Checklist (Fresher और 2+ Years) How to Prepare for a DevOps Interview in 30 Days DevOps Interview साठी ३० दिवसांत तयारी कशी करायची DevOps Interview की तैयारी 30 दिनों में कैसे करें दररोज DevOps Engineer वापरतो ती Linux Commands हर दिन DevOps Engineer जो Linux Commands इस्तेमाल करता है How to Write a Bash Script for Server Health and Disk Alerts Server Health आणि Disk Alerts साठी Bash Script कशी लिहावी Server Health और Disk Alerts के लिए Bash Script कैसे लिखें Cron Jobs Explained: Schedule Backups and Log Cleanup Cron Jobs समजावून: Backups आणि Log Cleanup शेड्यूल करा Cron Jobs समझाया: Backups और Log Cleanup शेड्यूल करें How to Troubleshoot with systemctl and journalctl systemctl आणि journalctl ने Troubleshooting कशी करायची systemctl और journalctl से Troubleshooting कैसे करें Data Science vs Data Analytics vs BI Explained Python for Data Science: Beginner First Steps Install Python 3, venv and Jupyter for Data Science pandas DataFrame for Beginners: Series vs DataFrame pandas read_csv and read_excel for Beginners pandas Filter Rows and Columns (Select, Boolean, Sort) pandas groupby and Aggregation for Beginners Handle Missing Values in pandas (NaN, dropna, fillna) Exploratory Data Analysis (EDA) in Python with pandas matplotlib and seaborn: First Charts for Storytelling Data Science vs Data Analytics vs BI — समजावून सांगितलं Data Science vs Data Analytics vs BI समझाया Data Science साठी Python: नवशिक्यांची पहिली पावलं Data Science के लिए Python: शुरुआती first steps Data Science साठी Python 3, venv आणि Jupyter install Data Science के लिए Python 3, venv और Jupyter install pandas DataFrame नवशिक्यांसाठी: Series vs DataFrame pandas DataFrame शुरुआती: Series vs DataFrame pandas read_csv आणि read_excel नवशिक्यांसाठी pandas read_csv और read_excel शुरुआती pandas मध्ये rows आणि columns filter (select, boolean, sort) pandas में rows और columns filter (select, boolean, sort) pandas groupby आणि aggregation नवशिक्यांसाठी pandas groupby और aggregation शुरुआती pandas मध्ये missing values (NaN, dropna, fillna) pandas में missing values (NaN, dropna, fillna) Python मध्ये EDA (Exploratory Data Analysis) — pandas checklist Python में EDA (Exploratory Data Analysis) — pandas checklist matplotlib आणि seaborn: पहिले charts (storytelling) matplotlib और seaborn: पहले charts (storytelling) Excel VLOOKUP Exact Match (FALSE) for Beginners Excel XLOOKUP Basics for Beginners How to Create a PivotTable in Excel from Scratch Excel IF Function for Decisions (Pass/Fail, High/Low) Excel SUMIF and SUMIFS for Conditional Totals Excel COUNTIF and COUNTIFS Explained Excel INDEX and MATCH Lookup for Beginners How to Remove Duplicates in Excel (Data Tab) Excel CONCAT, TEXTJOIN and & to Join Text Excel FILTER Function (Dynamic Array) for Beginners Excel VLOOKUP Exact Match (FALSE) — मराठी Excel VLOOKUP Exact Match (FALSE) — हिंदी Excel XLOOKUP Basics — मराठी नवशिक्यांसाठी Excel XLOOKUP Basics — हिंदी शुरुआती Excel PivotTable सुरवातीपासून — मराठी Excel PivotTable शुरू से — हिंदी Excel IF Function (High/Low, Pass/Fail) — मराठी Excel IF Function (High/Low, Pass/Fail) — हिंदी Excel SUMIF आणि SUMIFS — मराठी Excel SUMIF और SUMIFS — हिंदी Excel COUNTIF आणि COUNTIFS — मराठी Excel COUNTIF और COUNTIFS — हिंदी Excel INDEX आणि MATCH Lookup — मराठी Excel INDEX और MATCH Lookup — हिंदी Excel Remove Duplicates (Data Tab) — मराठी Excel Remove Duplicates (Data Tab) — हिंदी Excel CONCAT, TEXTJOIN आणि & — मराठी Excel CONCAT, TEXTJOIN और & — हिंदी Excel FILTER Function (Dynamic Array) — मराठी Excel FILTER Function (Dynamic Array) — हिंदी