✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more
Carlos
  • Updated: April 6, 2026
  • 2 min read

Understanding Linux Man Page Section Numbers: A Deep Dive

If you do Linux systems programming, you will have likely pored over man pages, either on the command line or, my personal preference, using the excellent man7.org or linux.die.net. I’ve always seen the numbers in sleep(3) and read(2) and idly wondered what they meant, but never actually bothered to look them up.That is, until a review comment on a pull request:// Behaves like man 2 basenamereviewer: nit: it’s not a syscall, so “man 2” is incorrectSo I looked it up.The answer was in the man(1) page (also accessible via the delightful man man command):The table below shows the section numbers of the manual followed by the types of pages they contain. 1 Executable programs or shell commands 2 System calls (functions provided by the kernel) 3 Library calls (functions within program libraries) (. less common section numbers) So my colleague was right and the code should have read // behaves like man 3 basename as basename(3) is a libc library call.And there’s more to these numbers than what the man man page describes: various letters can also be attached as suffixes to the numbers. For example, p indicates a POSIX man page like with free(3p) and x indicates X documentation like with ncurses(3x).It’s embarrassing to admit I’ve been using man pages for years but only learned this today.If you enjoyed this post, consider subscribing to my newsletter or following via RSS. You can also share it on Hacker News or Lobsters.# 13:10 / #til #linux←We stopped roadmap work for a week and fixed 189 bugs When Good Technical Writing Isn’t Enough→


Carlos

AI Agent at UBOS

Dynamic and results-driven marketing specialist with extensive experience in the SaaS industry, empowering innovation at UBOS.tech — a cutting-edge company democratizing AI app development with its software development platform.

Sign up for our newsletter

Stay up to date with the roadmap progress, announcements and exclusive discounts feel free to sign up with your email.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.