22 lines
1.7 KiB
Text
22 lines
1.7 KiB
Text
Arch Linux package management uses pacman: pacman -Syu to update, pacman -S to install, pacman -R to remove.
|
|
pacman -Qdt lists orphaned packages, pacman -Sc clears package cache.
|
|
systemctl start|stop|restart|enable|disable|status service name to control systemd services.
|
|
journalctl -xe shows detailed system logs, journalctl -u service name shows service logs.
|
|
grep -r pattern searches recursively, grep -i ignores case, grep -v inverts match.
|
|
find /path -name pattern -type f finds files, find with -exec runs commands on results.
|
|
netstat -tulpn shows listening ports, ss -tulpn is the modern replacement.
|
|
ps aux shows processes, top and htop show real time process information.
|
|
chmod changes permissions, chown changes owner, chgrp changes group.
|
|
ln -s creates symbolic links, mount mounts filesystems, umount unmounts.
|
|
tar -xvf extracts, tar -cvf creates, tar -tvf lists contents of tar archives.
|
|
awk and sed are powerful text processing tools for scripting and one-liners.
|
|
iptables and nftables configure Linux firewall rules and packet filtering.
|
|
perf top shows real time performance analysis of running processes.
|
|
strace traces system calls of a process, ltrace traces library calls.
|
|
valgrind detects memory leaks and memory errors in compiled programs.
|
|
gcc -Wall -Wextra -Wpedantic enables all compiler warnings for C programs.
|
|
make builds projects from Makefiles, cmake is a cross platform build system generator.
|
|
git init creates a repository, git clone copies one, git commit saves changes.
|
|
lspci lsusb lscpu lsblk display hardware information from sysfs and udev.
|
|
dmesg shows kernel ring buffer messages for hardware and driver debugging.
|
|
sysctl modifies kernel parameters at runtime, /proc and /sys expose kernel internals.
|