Linux commands: man
By Flavio
Published · Updated
Tagged: CLI
Learn how the Linux man command opens the manual page for any command, how its pages are grouped by section number, and how tldr gives you a quick summary.
Every time I don’t know how to use a command, I type man <command> to get the manual:

This is a man (from manual) page. Man pages are an essential tool to learn, as a developer. They contain so much information that sometimes it’s almost too much.
The above screenshot is just the first of about 23 screens of explanation for the ls command.
Man pages are divided into 8 different sections, identified by a number:
1is user commands2is kernel system calls3is C library functions4is devices5is files formats and filesystems6is games7is miscellaneous commands, conventions and overviews8is superuser and system administrator commands
Most of the times when I’m in need to learn a command quickly I use this site called tldr pages: https://tldr.sh/. It’s a command you can install (the screenshot uses the Node.js client, installed with npm install -g tldr), then you run it like this: tldr <command>, which gives you a very quick overview of a command, with some handy examples of common usage scenarios:

This is not a substitute for man, but a handy tool to avoid losing yourself in the huge amount of information present in a man page. Then you can use the man page to explore all the different options and parameters you can use on a command.
The
mancommand works on Linux, macOS, WSL, and anywhere you have a UNIX environment
Want me to talk about your product? You can sponsor this site.
Related posts about cli: