Skip to content

man

Display manual in swedish

man --locale=sv apropos

Quick access to the ascii table.

man ascii

See The MAN page for the last command

man !!:0

Backup a file before editing it.

man emacs

Display a random man page

man $(ls /bin | sed -n $((RANDOM % $(ls /bin | wc -l) + 1))p)

Display a random man page

man $(ls -1 /usr/share/man/man?/ | shuf -n1 | cut -d. -f1)

Get some useful Information

man <COMMAND>

open man page of last used command

man !!

Display a random man page

man $(/bin/ls /bin | awk '{ cmd[i++] = $0 } END { srand(); print cmd[int(rand()*length(cmd))]; }')

Learn searching and navigating in man like a boss

man <command> then type h

A description of internet protocol

man inet

ettercap manual

man ettercap

bash man page

man bash | col -b

Save man pages to pdf

man -t man | ps2pdf - > man.pdf

Give to anyone a command to immediatly find a particular part of a man.

man <COMMAND> | less +'/pattern'

Play musical notes from octave of middle C

man beep | sed -e '1,/Note/d; /BUGS/,$d' | awk '{print $2}' | xargs -IX sudo beep -f X -l 500

Quick access to the ascii table.

man ascii

Introduction to user commands

man intro

read manpage of a unix command as pdf in preview (Os X)

man -t UNIX_COMMAND | open -f -a preview
man -t man | lp

Show File System Hierarchy

man hier

Show File System Hierarchy

man hier

Show File System Hierarchy

man hier

Show File System Hierarchy

man hier

Search manpages for a keyword

man -k <keyword>

Quick access to the ascii table.

man ascii

save man-page as pdf

man -t awk | ps2pdf - awk.pdf

Quick access to the ascii table.

man ascii

Show sections of a man page.

man ls | egrep "^([A-Z]|   [A-Z])"

What is the use of this switch ?

manswitch () { man $1 | less -p "^ +$2"; }

Convert "man page" to text file

man ls | col -b > ~/Desktop/man_ls.txt

Quick access to the ascii table.

man ascii

open manpage and search for a string

man foobar | less +/searched_string

What is the use of this switch ?

manswitch() { man $1 | grep -A5 "^ *\-$2"; }

Quick access to the ascii table.

man ascii

Access to specific man page section

man 5 crontab

Display a random man page

man $(ls /bin | shuf | head -1)
man -Pcat urxvt | \ # see description for full command

Convert man page to PDF

man -Tps ls >> ls_manpage.ps && ps2pdf ls_manpage.ps

Quick access to the ascii table.

man ascii
man -t ls > ls.ps && pdf2ps ls.ps && rm ls.ps

Create a pdf version of a manpage

man -t manpage | ps2pdf - filename.pdf

Create a pdf version of a manpage

man -t manpage | ps2pdf - filename.pdf

Display a random man page

man $(ls /bin | shuf -n1)

open manpage in browser

man -HBrowser manpage

Quick access to the ascii table.

man ascii

Render man page in temporary PDF (works in Gnome)

man -t man | ps2pdf - temp.pdf; evince temp.pdf &> /dev/null &; sleep 3; rm temp.pdf

Quick access to ASCII code of a key

man ascii

Go to man section of bash builtins

man () { if [[ $(type ${1}) =~ "is a shell builtin" ]]; then; /usr/bin/man -P "/usr/bin/less -iRs pattern=\"^ *${1}\"" bash; else; /usr/bin/man ${1}; return; fi; }

Quick access to the ascii table.

man ascii

search manpages on the internets

manview() { lynx -dump -accept_all_cookies 'http://www.csuglab.cornell.edu/cgi-bin/adm/man.cgi?section=all&topic='"$1" | less; }
man fetchmail | perl -ne 'undef $/; print $1 if m/^.*?(-k \| keep.*)-K \| nokeep.*$/smg'

save a manpage to plaintext file

man perlcheat | col -b > perlcheat.txt

save a manpage to plaintext file

man -P cat ls > man_ls.txt

Quick access to the ascii table.

man ascii

Quick access to the ascii table.

man ascii

Quick access to the ascii table.

man ascii

See The MAN page for the last command

man !!:0

Save man pages to pdf

man -t man | ps2pdf - > man.pdf

Give to anyone a command to immediatly find a particular part of a man.

man <COMMAND> | less +'/pattern'

Play musical notes from octave of middle C

man beep | sed -e '1,/Note/d; /BUGS/,$d' | awk '{print $2}' | xargs -IX sudo beep -f X -l 500

Quick access to the ascii table.

man ascii

Introduction to user commands

man intro

read manpage of a unix command as pdf in preview (Os X)

man -t UNIX_COMMAND | open -f -a preview
man -t man | lp

Show File System Hierarchy

man hier

Show File System Hierarchy

man hier

Show File System Hierarchy

man hier

Search manpages for a keyword

man -k <keyword>

Quick access to the ascii table.

man ascii

save man-page as pdf

man -t awk | ps2pdf - awk.pdf

Quick access to the ascii table.

man ascii

Show sections of a man page.

man ls | egrep "^([A-Z]|   [A-Z])"

What is the use of this switch ?

manswitch () { man $1 | less -p "^ +$2"; }

Convert "man page" to text file

man ls | col -b > ~/Desktop/man_ls.txt

Quick access to the ascii table.

man ascii

open manpage and search for a string

man foobar | less +/searched_string

What is the use of this switch ?

manswitch() { man $1 | grep -A5 "^ *\-$2"; }

Quick access to the ascii table.

man ascii

Access to specific man page section

man 5 crontab

Display a random man page

man $(ls /bin | shuf | head -1)
man -Pcat urxvt | \ # see description for full command

Convert man page to PDF

man -Tps ls >> ls_manpage.ps && ps2pdf ls_manpage.ps

Quick access to the ascii table.

man ascii
man -t ls > ls.ps && pdf2ps ls.ps && rm ls.ps

Create a pdf version of a manpage

man -t manpage | ps2pdf - filename.pdf

Display a random man page

man $(ls /bin | shuf -n1)

open manpage in browser

man -HBrowser manpage

Quick access to the ascii table.

man ascii

Render man page in temporary PDF (works in Gnome)

man -t man | ps2pdf - temp.pdf; evince temp.pdf &> /dev/null &; sleep 3; rm temp.pdf

Quick access to ASCII code of a key

man ascii

Go to man section of bash builtins

man () { if [[ $(type ${1}) =~ "is a shell builtin" ]]; then; /usr/bin/man -P "/usr/bin/less -iRs pattern=\"^ *${1}\"" bash; else; /usr/bin/man ${1}; return; fi; }

Quick access to the ascii table.

man ascii

Last update: August 10, 2022
Created: August 10, 2022