GNU and Unix Commands (Topic 1.103)
Review Questions
Describe the difference between shell variables and environment variables.
Compare and contrast built-in and explicitly defined commands and those found in
PATH
.After a lengthy session of file manipulation on the command line, what will !ls produce?
What program was the source for the default history editing key bindings in bash?
Explain the notion of pipes as they refer to shell capabilities, and illustrate using an example of two or more filter programs.
Explain the -p option to cp and give an example of why it is necessary.
Give two examples of files matched by the wildcard
??[!1-5]
.Name the three standard I/O streams and their functions.
Give an example of the redirection operator,
>
, and describe how the outcome would be different using the>>
operator.What process is the ultimate ancestor of all system processes? Give both the PID and the program name.
Name three common utilities used for process monitoring.
What happens to a typical daemon when it receives
SIGHUP
? How would the behavior be different if it receivedSIGKILL
?Compare and contrast background and foreground jobs, and state the syntax to put a command in the background on the command line.
Explain the relationship between a process's nice number and its execution priority.
What two classifications of characters make up regular expressions?
How are the regular expressions
[A-Z]*
and^[A-Z]*$
different?What is the difference between executing
:q
versus:q!
in vi?What does it ...
Get LPI Linux Certification in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.