Vol. I · No. 46The command line sectionSat, 10 Oct 2026
The system itself

/sbin

administration commands→ usr/sbin

/sbin holds the system administration commands. These are the programs that partition disks, configure the network and manage users. Anyone can usually look at them, but most of them only do their job when run as root.

The tools that change the system, kept apart from the everyday ones.

Holds
Admin commands
Disk, network, user and boot tools
On disk
A link
Points to usr/sbin on current systems
Who runs
Mostly root
Usually through sudo
Name
System binaries
The s is for system

Why it exists

Every directory at the top of the tree is there for a reason. This is the problem /sbin solves.

A separate shelf for dangerous tools

Formatting a disk and listing a directory are not the same kind of act. Keeping the administration commands apart makes it clear which is which.

Kept off ordinary users’ PATH

On some distributions /sbin is only on root’s PATH. A normal user who types fdisk may be told the command is not found, although it is installed.

What you find inside

Not everything, but the entries worth recognising. Each is marked as a directory, a file, a link or a device.

/sbin
  • ipfileShows and changes interfaces, addresses and routes.
  • fdiskfileReads and edits a disk’s partition table.
  • mkfsfileCreates a filesystem on a partition.
  • useraddfileCreates a user account.
  • rebootfileRestarts the machine.
  • sshdfileThe SSH server program.

At the terminal

Four commands that show what this directory is doing on a real machine.

ls -ld /sbin

Show that /sbin is a link, and where it points.

ls /usr/sbin | head

List the first few administration commands installed.

sudo fdisk -l

Run an administration command with root’s rights — here, list the disks.

which ip

Find which directory an administration command lives in.

Handle with care

What goes wrong here, and what someone securing or attacking the machine looks at.

These commands act at once

mkfs and fdisk do not ask twice. Check the device name before running anything that writes to a disk.

“Command not found” may mean PATH

If an administration command seems to be missing, try it with sudo or by its full path before installing anything.

Read alongside