5 - Working with Commands Flashcards
what are commands?
executable programs, shell builtins, shell functions or aliases
executable programs
programs written in scripting languages or compiles binaries
shell builtins
commands supported by the shell internally
shell functions
miniature shell scripts incorporated into the environment
alias
commands built from other commands
type (command)
displays command type
which (command)
displays the location of executables
man (command)
special paging program used to view cmd documentation
*divided into 8 sections
*covers user/sysadmin commands, programming interfaces, file formats
apropos
displays appearances of a search term in man pages
whatis
displays one-line man page descriptions of a given term
info
GNU alt to man
*reader program displaying documentation - reads info files (tree structured into nodes)
*info pages are hyperlinked
zless
version of less displaying contents of gzip compressed files
how to create an alias
alias name=’string’
alias (command/no arguments)
displays all aliases defined in the environment