システム管理コマンド
Linux / Unix system information、file operations、systemd、network diagnostics。
Version と安全範囲
最終確認:2026年7月11日
これは一般的な command reference であり、特定 version に固定した完全な runbook ではありません。実行前に installed version、最新の公式ドキュメント、対象 account/host/path を確認してください。deploy、destroy、delete、prune、sync、upgrade、system setting の変更は、費用、停止、data loss につながる可能性があります。差分を事前確認し、必要に応じて backup を取得してください。
System inspection
uname -a
cat /etc/os-release
lscpu
free -h
df -h
lsblk
ip addr show
ip route showserver incident を記録するときは、この基本情報から取得する。
Files と logs
ls -la
find /path -name "*.log"
du -sh /path/*
tail -f /var/log/syslog
grep "error" /var/log/syslog
tar -czf archive.tar.gz folder/live logs には tail -f、過去ログの絞り込みには grep を使う。
systemd と networking
sudo systemctl status nginx
sudo systemctl restart nginx
sudo journalctl -u nginx -f
ping -c 4 8.8.8.8
ss -tuln
lsof -i :80
curl -I https://example.comservice state、listening ports、external HTTP path の順で確認する。