Ch. 5 Working with Commands Flashcards
Indicate how a command name is interpreted
type
Display which executable program will be executed
which
get help for shell builtins
help
Display a command’s manual page
man
Display a list of appropriate commands
apropos
Display a command’s info entry
info
Display one-line manual page descriptions
whatis
Create an alias for a command
alias
What are the four different things a command can be?
- An executable program
2. A command built into the shell itself. 3. a shell function 4. An alias
Within this category, programs can be compiled binaries such as programs written in C and C++, or programs written in scripting languages such as the shell, Perl, Python, Ruby, and so on.
Executable Programs
Bass supports a number of commands internally. This category includes the cd command for an example.
Command built int the shell itself
Miniature shell scripts incorporated into the environment.
A shell function
Commands that we can define ourselves, built from other commands.
Alias
How would you display the command type for command? how would it describe it?
Type command
command is a shell builtin
How do you find the documentation available for shell built ins?
help command