Skip to content

Instantly share code, notes, and snippets.

@hexaflexahexagon
Created September 29, 2023 12:42
Show Gist options
  • Save hexaflexahexagon/654d053db7d81a4c85d1c300593f3bfe to your computer and use it in GitHub Desktop.
Save hexaflexahexagon/654d053db7d81a4c85d1c300593f3bfe to your computer and use it in GitHub Desktop.
## useful commands

man

useful commands

man man # man man pages
man -k '' # list all man pages on the system
man -k 'compare' # search for a term in all man pages
man -s 7 -k '' # list all man pages of section 7 on the system (5 is also useful)

section reference

  • 1 Executable programs or shell commands
  • 2 System calls (functions provided by the kernel)
  • 3 Library calls (functions within program libraries)
  • 4 Special files (usually found in /dev)
  • 5 File formats and conventions eg /etc/passwd
  • 6 Games
  • 7 Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)
  • 8 System administration commands (usually only for root)
  • 9 Kernel routines [Non standard]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment