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

推荐订阅源

V
V2EX
C
Check Point Blog
博客园_首页
B
Blog
D
Docker
U
Unit 42
量子位
I
InfoQ
有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
博客园 - Franky
美团技术团队
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
月光博客
月光博客
Vercel News
Vercel News
Recent Announcements
Recent Announcements
雷峰网
雷峰网
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Google DeepMind News
Google DeepMind News

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
Linux sysadmin tips & shortcuts
Hosni Zaarao · 2026-05-06 · via DEV Community

Process & Port Management

Find what’s using a port:

ss -tulnp | grep :8080

Kill process by port:

kill -9 $(lsof -t -i:8080)

Top processes (better than top):

btop

Show process tree:

ps auxf

File & Disk Tricks

Human-readable disk usage:

df -h
du -sh *

Find large files:

find / -type f -size +500M 2>/dev/null

Quickly clean logs:

truncate -s 0 /var/log/syslog

Search Like a Pro

Grep with line numbers + ignore case:

grep -in "error" file.log

Recursive search:

grep -r "password" /etc

Use less smarter:
/pattern → search
Shift+G → go to end

Networking Essentials

Check open ports:

ss -tuln

Test connectivity:

nc -zv 192.168.1.10 80

Show IPs:

ip a

Live traffic sniff:

tcpdump -i eth0

Services & Systemd

Check service status:

systemctl status nginx

Restart service:

systemctl restart nginx

View logs:

journalctl -u nginx -f

Memory & Performance

Memory usage:

free -h

CPU + memory snapshot:

top

IO stats:

iostat

Terminal Shortcuts (Huge Time Savers)

Ctrl + C → kill command
Ctrl + Z → pause (background it)
fg → bring back
Ctrl + A → start of line
Ctrl + E → end of line
Ctrl + R → search history 🔥

History & Productivity

Show history:

history

Re-run last command:

!!

Re-run command with sudo:

sudo !!

Permissions & Ownership

Change ownership:

chown user:user file

Change permissions:

chmod 755 script.sh

Package Management (Debian/Ubuntu)

Update & upgrade:

apt update && apt upgrade -y

Find package:

apt search nginx

Remove package:

apt remove nginx

Debugging & Logs

Follow logs live:

tail -f /var/log/syslog

Last 100 lines:

tail -n 100 file.log

Watch command output:

watch -n 2 "df -h"

Pro-Level Tricks

Run command in background:

nohup command &

Run multiple commands safely:

command1 && command2

Pipe like a wizard:

cat file | grep error | sort | uniq

Temporary Python web server:

python3 -m http.server 8000

Bonus (Sysadmin Mindset)

Always check logs first (/var/log or journalctl)
If something uses a port → ss + lsof → kill
If service fails → systemctl status + journalctl
If server slow → top + iostat + free