103.1 Work on the command line Flashcards
How do you navigate to a specific man page section?
#man 4 find (4 being the section and find the command)
What is the command that displays a list of all topics in the man pages that are related to the subject of a query?
apropos
What does section 1 of the man pages contain?
It contains common user’s commands.
What is the syntax to access the manual pages of a command?
man
Which is the environmental variable that dictates how many lines the .bash_history will contain?
$HISTFILESIZE
What is the file that contains the previously run commands in the shell?
.bash_history located in the user’s home directory
How do you execute a command in the output of #history?
Either my pressing the up/down arrow keys or by entering an exclamation mark and the command number.
What command helps in identifying the location of any particular command?
whereis
What are weak and strong quotes?
weak: double quotes
strong: single quotes
What command is used to determine if something is a function, a file, an alias, a built-in or a keyword?
type
What command locates an application file that is located within the user’s PATH?
which
What command starts a new shell from the current shell?
bash
What is the command that displays the shell options?
shopt
What command is used to remove a variable or a custom bash function?
unset -f
How do you turn off bash shell debugging?
set +x