Here's a preview from my zine, Bite Size Linux! If you want to see more comics like this, sign up for my saturday comics newsletter or browse more comics!
get the zine!
read the transcript!
man pages are split up into 8 sections
1 2 3 4 5 6 7 8
$ man 2 read
means “get me the man page for read from section 2”.
There’s both
- a program called “read”
- and a system call called “read”
So
$ man 1 read
gives you a different man page from
$ man 2 read
If you don’t specify a section, man will look through all the sections & show the first one it finds.
man page sections
-
programs
$ man grep
$ man ls -
system calls
$ man sendfile$ man ptrace -
C functions
$man printf$ man fopen -
devices
$ man nullfor /dev/null docs -
file formats
$ man sudoersfor/etc/sudoers
$ man procfiles in/proc! -
games
not super useful.$man slis my favourite from that section -
miscellaneous
explains concepts!
$man 7 pipe
$ man 7 symlink -
sysadmin programs
$ man apt
$ man chroot