You can also use the
man command to print/save
manpages' commands to a PDF file:
Code:
man t- ls | ps2pdf - ls.pdf
This will save the contents of
man ls to a PDF file in your home directory. Another command you can use is
apropos followed by a keyword
, i.e.
you'll get a list of tools that can handle tasks related to the keyword "network" such as this
Code:
$ apropos network
interfaces (5) - network interface configuration for ifup and ifdown
aseqnet (1) - ALSA sequencer connectors over network
atmel_fwl (8) - Load firmware into Atmel at76c50x wireless networking chips.
byteorder (3) - convert values between host and network byte order
ctstat (8) - unified linux network statistics
dhclient-script (8) - DHCP client network configuration script
endhostent (3) - get network host entry
endnetent (3) - get network entry
endnetgrent (3) - handle network group entries
ethtool (8) - query or control network driver and hardware settings
freeaddrinfo (3) - network address and service translation
freehostent (3) - get network hostnames and addresses
gai_cancel (3) - asynchronous network address and service translation
The numbers in parenthesis indicates which
manpage contains information about the tool, thus for
interfaces (5) you'd do:
Code:
$man -t 5 interfaces | ps2pdf - interfaces.pdf
Another command is
help which will show you a list of bash's built-in commands with a short description
. (Please, note that my system is in Spanish, and while I did translate a few lines there were too many, in any case, those are really meaningless for now, you'll know their meaning when you see them in your system, with your own language.
)
Code:
$ help
GNU bash, versión 5.1.4(1)-release (x86_64-pc-linux-gnu)
These shell commands are defined internally. Type `help 'to
see this list.
Type `help name 'to learn more about the function` name'.
Use `info bash 'to learn more about the shell in general.
Use `man -k 'or` info' to learn more about the commands that are not in
this list.
An asterisk (*) next to a name means that the command is disabled.
id_trabajo [&] history [-c] [-d despl] [n] o history -anrw [fichero] o history -ps arg [arg...]
(( expresión )) if ÓRDENES; then ÓRDENES; [ elif ÓRDENES; then ÓRDENES; ]...[ else ÓRDENES; ] fi
. fichero [argumentos] jobs [-lnprs] [idtrabajo ...] o jobs -x orden [args]
: kill [-s id_señal | -n num_señal | -id_señal] pid | idtrabajo ... o kill -l [id_señal]
[ arg... ] let arg [arg ...]
[[ expresión ]] local [opción] nombre[=valor] ...
alias [-p] [nombre[=valor] ... ] logout [n]
bg [id_trabajo ...] mapfile [-d delim] [-n cuenta] [-O origen] [-s cuenta] [-t] [-u df] [-C llamada] [-c quantu>
bind [-lpsvPSVX] [-m comb_teclas] [-f fichero] [-q nombre] [-u nombre] [-r secteclas] [-x se> popd [-n] [+N | -N]
break [n] printf [-v var] formato [argumentos]
builtin [orden-interna-shell [arg ...]] pushd [-n] [+N | -N | dir
caller [expresión] pwd [-LP]
case PALABRA in [PATRÓN [| PATRÓN]...) ÓRDENES ;;]... esac read [-ers] [-a matriz] [-d delim] [-i texto] [-n ncars] [-N ncars] [-p prompt] [-t tiempo]>
cd [-L|[-P [-e]]] [dir] readarray [-d delim] [-n cuenta] [-O origen] [-s cuenta] [-t] [-u df] [-C llamada] [-c quan>
command [-pVv] orden [arg ...] readonly [-aAf] [nombre[=valor] ...] ó readonly -p
compgen [-abcdefgjksuv] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C> return [n]
complete [-abcdefgjksuv] [-pr] [-DEI] [-o option] [-A action] [-G globpat] [-W wordlist] [-F> select NOMBRE [in PALABRAS ... ;] do ÓRDENES; done
compopt [-o|+o opción] [-DEI] [nombre ...] set [-abefhkmnptuvxBCHP] [-o nombre-opción] [--] [arg ...]
continue [n] shift [n]
coproc [NOMBRE] orden [redirecciones] shopt [-pqsu] [-o] [nombre_opción...]
declare [-aAfFgiIlnrtux] [-p] [name[=value] ...] source fichero [argumentos]
dirs [-clpv] [+N] [-N] suspend [-f]
disown [-h] [-ar] [idtrabajo ... | pid ...] test [expresión]
echo [-neE] [arg ...] time [-p] tubería
enable [-a] [-dnps] [-f fichero] [nombre ...] times
eval [arg ...] trap [-lp] [[arg] id_señal ...]
exec [-cl] [-a name] [command [argument ...]] [redirection ...] true
exit [n] type [-afptP] nombre [nombre ...]
export [-fn] [nombre[=valor] ...] ó export -p typeset [-aAfFgiIlnrtux] [-p] name[=value] ...
false ulimit [-SHabcdefiklmnpqrstuvxPT] [limit]
fc [-e nombre_e] [-lnr] [primero] [último] o fc -s [pat=rep] [orden] umask [-p] [-S] [modo]
fg [id_trabajo] unalias [-a] nombre [nombre ...]
for NOMBRE [in PALABRAS ... ] ; do ÓRDENES; done unset [-f] [-v] [-n] [nombre ...]
for (( exp1; exp2; exp3 )); do ÓRDENES; done until ÓRDENES; do ÓRDENES; done
function nombre { ÓRDENES ; } o nombre () { ÓRDENES ; } variables - Nombres y significados de algunas variables de shell
getopts optstring name [arg ...] wait [-fn] [-p var] [id ...]
hash [-lr] [-p ruta] [-dt] [nombre ...] while ÓRDENES; do ÓRDENES; done
help [-dms] [patrón ...] { ÓRDENES ; }
Likewise, you can use
help followed by a command on that list, i.e.
to know more about what that command does.