0% found this document useful (0 votes)
122 views2 pages

Man Page Cheat Sheet: Examples

This document provides a cheat sheet for using the man command on Linux systems. It describes how to look up command manuals with man, search for specific man pages, navigate within man pages, and understand man page conventions and sections. Navigation keys are listed for moving around within man pages and searching. The different types of sections for man pages are also outlined.

Uploaded by

Jay Laino
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views2 pages

Man Page Cheat Sheet: Examples

This document provides a cheat sheet for using the man command on Linux systems. It describes how to look up command manuals with man, search for specific man pages, navigate within man pages, and understand man page conventions and sections. Navigation keys are listed for moving around within man pages and searching. The different types of sections for man pages are also outlined.

Uploaded by

Jay Laino
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Man​ ​Page​ ​Cheat​ ​Sheet 

 
Usage: 
man​ ​PAGE​​ ​... 
 
Examples: 
man​ ​ls 
man​ ​man 
man​ ​cat 
 
Searching​ ​for​ ​Man​ ​Pages 
 
Usage: 
man​ ​-k​ ​KEYWORD​ ​... 
 
Examples: 
man​ ​-k​ ​password 
man​ ​-k​ ​reboot 
man​ ​-k​ ​ssh 
 
Man​ ​Page​ ​Navigation 
 
NOTE:​ ​Type​ ​"​h​"​ ​for​ ​additional​ ​information​ ​while​ ​inside​ ​man​ ​and​ ​type​ ​"q
​ ​"​ ​to​ ​quit. 
 
j  Forward​ ​ ​one​ ​line   
k  Backward​ ​one​ ​line   
^F  Forward​ ​ ​one​ ​window  
^B  Backward​ ​one​ ​window  
g  Go​ ​to​ ​first​ ​line​ ​in​ ​file​ ​(or​ ​line​ ​N). 
G  Go​ ​to​ ​last​ ​line​ ​in​ ​file​ ​(or​ ​line​ ​N). 
 
Searching​ ​Within​ ​a​ ​Man​ ​Page 
 
/pattern  Search​ ​forward​ ​for​ ​matching​ ​line. 
?pattern  Search​ ​backward​ ​for​ ​matching​ ​line. 
n  Repeat​ ​previous​ ​search 
N  Repeat​ ​previous​ ​search​ ​in​ ​reverse​ ​direction. 
ESC-u  Undo​ ​(toggle)​ ​search​ ​highlighting. 
 
Man​ ​Page​ ​Conventions 
 
bold​ ​text type​ ​exactly​ ​as​ ​shown. 
italic​ ​text replace​ ​with​ ​appropriate​ ​argument. 
[-abc] arguments​ ​within​ ​[​ ​]​ ​are​ ​optional. 
-a|-b options​ ​cannot​ ​be​ ​used​ ​together. 
argument​ ​... argument​ ​is​ ​repeatable. 

LinuxTrainingAcademy.com 
Man​ ​Page​ ​Sections 
 
Usage: 
man​ ​[​SECTION​]​ ​PAGE​​ ​... 
 
Examples: 
man​ ​unlink 
man​ ​2​ ​unlink 
man​ ​7​ ​arp 
 
Sections: 
 
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] 
 
 
Getting​ ​Help​ ​with​ ​Shell​ ​Builtins 
 
Usage: 
help​ ​[​pattern​​ ​...] 
 
Examples: 
help​ ​alias 
help​ ​cd 
help​ ​while 
 
 
Determining​ ​Type​ ​of​ ​Command 
 
Usage: 
type​ ​name​​ ​... 
 
Examples: 
type​ ​alias
type​ ​man
type​ ​ls
 

LinuxTrainingAcademy.com 

You might also like