systemd & Service Commands
Managing a Service: systemctl sudo systemctl start nginx # start now sudo systemctl stop nginx # stop now sudo systemctl restart nginx # …
Managing a Service: systemctl sudo systemctl start nginx # start now sudo systemctl stop nginx # stop now sudo systemctl restart nginx # …
Load Average & Uptime uptime # 10:32:01 up 45 days, 2:14, 3 users, load average: 1.25, 0.98, 0.75 The three numbers are load average …
tar: The Standard Archive Tool tar (tape archive) bundles multiple files/directories into a single file — by itself it doesn’t …
Two Major Families flowchart LR subgraph Debian-based APT["apt / apt-get"] --> DPKG["dpkg (.deb files)"] end subgraph "Red Hat-based" …
Disk & Filesystem Usage df -h # disk usage per mounted filesystem, human-readable df -hT # + filesystem type (ext4, xfs, tmpfs...) df -i …
Interfaces & Addresses ip addr show # all interfaces + their IPs (modern replacement for ifconfig) ip a # short form ip link show # …
Permissions: chmod chmod 644 file.txt # owner rw-, group r--, others r-- (standard for files) chmod 755 script.sh # owner rwx, group r-x, …
Viewing Running Processes ps aux # every process on the system, BSD-style ps -ef # every process, standard/POSIX-style ps -ef --forest # …
The Unix Pipeline Philosophy Linux text tools are designed to be small and composable — chained together with | (pipe), where each …
A fast, scannable reference. For explanations and examples behind any of these, see the Linux Commands and Linux Fundamentals sections. …
Navigation pwd # print current working directory cd /var/log # change directory cd - # go back to previous directory cd ~ # go to home …