Unix and Linux System Administration Handbook

Software #

Look for software on my path:

which gcc

Find files quickly from precompiled index of filesystem:

locate signal.h

Package Management #

Query for presence of package on Red Hat:

rpm -q python

Find what package a file belongs to:

# Red Hat
rpm -qf /etc/httpd
# FreeBSD
pkg which /usr/local/sbin/httpd
# Ubuntu
dpkg-query -S /etc/apache2

Installing packages #

# Debian
sudo apt install tcpdump
sudo apt-get install tcpdump
# Red Hat
sudo yum install tcpdump
sudo dnf install tcpdump
# FreeBSD
sudo pkg install -y tcpdump

Building from Source #

STUB

Installing from a web script #

STUB

Booting #

  • Basic Input/Output System (BIOS)
  • Unified Extensible Firmware Interface (UEFI)

UEFI #