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

推荐订阅源

J
Java Code Geeks
G
Google Developers Blog
人人都是产品经理
人人都是产品经理
U
Unit 42
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
B
Blog RSS Feed
The Cloudflare Blog
D
Docker
A
About on SuperTechFans
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Y
Y Combinator Blog
月光博客
月光博客
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
The GitHub Blog
The GitHub Blog
博客园_首页
Stack Overflow Blog
Stack Overflow Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Useful Linux Commands Every System Administrator Should Know
Sovrab Roy · 2026-05-08 · via DEV Community

Sovrab Roy

Useful Linux Commands Every System Administrator Should Know

Linux system administration becomes much easier when you know the right commands for monitoring, troubleshooting, and managing servers efficiently.

In this article, I’ll share some useful Linux commands that I regularly use while managing production servers and cloud infrastructure environments.


1. Check System Uptime

uptime

Enter fullscreen mode Exit fullscreen mode

Displays:

  • server uptime
  • current load average
  • active users

Useful for quick server health checks.


2. Monitor Running Processes

htop

Enter fullscreen mode Exit fullscreen mode

or

top

Enter fullscreen mode Exit fullscreen mode

Helps identify:

  • high CPU usage
  • memory consumption
  • overloaded processes

3. Check Disk Usage

df -h

Enter fullscreen mode Exit fullscreen mode

Displays disk space usage in human-readable format.


4. Analyze Directory Sizes

du -sh *

Enter fullscreen mode Exit fullscreen mode

Very useful when troubleshooting storage problems.


5. Check Memory Usage

free -m

Enter fullscreen mode Exit fullscreen mode

Shows:

  • RAM usage
  • swap usage
  • available memory

6. View Running Services

systemctl list-units --type=service

Enter fullscreen mode Exit fullscreen mode

Manage services:

sudo systemctl restart nginx
sudo systemctl status mysql

Enter fullscreen mode Exit fullscreen mode


7. Monitor Network Connections

ss -tulpn

Enter fullscreen mode Exit fullscreen mode

Useful for checking:

  • open ports
  • active services
  • listening processes

8. Search Logs Efficiently

tail -f /var/log/syslog

Enter fullscreen mode Exit fullscreen mode

or

journalctl -xe

Enter fullscreen mode Exit fullscreen mode

Essential for troubleshooting server issues.


9. Secure File Permissions

chmod 644 file.txt
chmod 755 script.sh

Enter fullscreen mode Exit fullscreen mode

Understanding Linux permissions is critical for server security.


10. Check Server IP Address

ip a

Enter fullscreen mode Exit fullscreen mode

or

hostname -I

Enter fullscreen mode Exit fullscreen mode


11. Test Server Connectivity

ping google.com

Enter fullscreen mode Exit fullscreen mode

Check routing:

traceroute google.com

Enter fullscreen mode Exit fullscreen mode


12. Monitor Real-Time Resource Usage

vmstat 1

Enter fullscreen mode Exit fullscreen mode

Provides live system performance statistics.


13. Docker Management Commands

List containers:

docker ps

Enter fullscreen mode Exit fullscreen mode

View logs:

docker logs container_name

Enter fullscreen mode Exit fullscreen mode

Restart container:

docker restart container_name

Enter fullscreen mode Exit fullscreen mode


14. Secure SSH Access

Restart SSH:

sudo systemctl restart ssh

Enter fullscreen mode Exit fullscreen mode

Check SSH port:

sudo ss -tulpn | grep ssh

Enter fullscreen mode Exit fullscreen mode


Conclusion

Linux commands are powerful tools for server administration, monitoring, troubleshooting, and infrastructure management.

A strong understanding of Linux fundamentals helps system administrators maintain stable, secure, and high-performance production environments.

I regularly work with Linux servers, Docker, cPanel/WHM, hosting technologies, and cloud infrastructure optimization.

🌐 Portfolio:
https://sovrabroy.online

linux #devops #bash #serveradministration