AI Workshop: learn to build apps with AI →
Advanced Commands: man - Manual Pages

Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.


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 1 of 14 screens of explanation for the ls command.

Man pages are divided into 8 sections, identified by a number:

  • 1 is user commands
  • 2 is kernel system calls
  • 3 is C library functions
  • 4 is devices
  • 5 is files formats and filesystems
  • 6 is games
  • 7 is miscellaneous commands, conventions and overviews
  • 8 is superuser and system administrator commands

Most of the time when I need to learn a command quickly I use this site called tldr pages: https://tldr.sh/. It’s a command you can install, 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 man command works on Linux, macOS, WSL, and anywhere you have a UNIX environment

Lessons in this unit:

0: Introduction
1: su - Switch User
2: sudo - Superuser Do
3: passwd - Change Password
4: ping - Test Network
5: traceroute - Trace Network Path
6: history - Command History
7: export - Set Environment Variables
8: crontab - Schedule Tasks
9: alias - Create Shortcuts
10: ▶︎ man - Manual Pages
11: tar - Archive Files
12: gzip - Compress Files
13: gunzip - Decompress Files
14: basename - Strip Directory
15: dirname - Extract Directory
16: nano - Text Editor
17: vim - Vi Improved Editor
18: emacs - Text Editor
19: ed - Line Editor
20: How to use Netcat
21: How to download a file from a server using the terminal