Shared Flashcard Set

Details

Linux+ - unit2 - Bo Rothwell
Linux+ - unit2 - Bo Rothwell
21
Computer Science
Professional
02/20/2012

Additional Computer Science Flashcards

 


 

Cards

Term
The keystroke combination Ctrl+Alt+F1 provides you access to a _______ console.
Definition
virtual
Term
GNOME and KDE are examples of ______ environments.
Definition
desktop
Term
In the command line "ls -l /etc", -l is an _______.
Definition
option
Term
Which of the following are not valid Linux shells: bash, zsh, xsh, tcsh
Definition
xsh
Term
What option to the cat command will number the lines of the output?
Definition
-n
Term
True or false: The finger command displays a user's home directory?
Definition
true
Term
What keystroke combination will move your cursor to the beginning of the line?
Definition
Ctrl+a
Term
Which variable stores your history size (the number of previous commands that the shell remembers).
Definition
$HISTSIZE
Term
What variable stores a user's login shell?
Definition
$SHELL
Term
Give the complete command line to execute both the ls and cal command on the same command line.
Definition
ls ; cal
Term
What command line will execute the date command if the command cal executes successfully?
Definition
cal && date
Term
You want to display the message "WARNING" to STDERR if the command "cp /etc/hosts /tmp" fails. Provide the complete command line to accomplish this. (Note from Bo: This is typically harder than the questions you normally receive on the exam.)
Definition
cp /etc/hosts /tmp || echo "WARNING" 1>&2
Term
What character will take the output of one command and send it into another command as input?
Definition
|
Term
What command line will take the STDERR of the "ls /junk" command and send it to the "tee output.txt" command?
Definition
ls /junk 2>&1 | tee output.txt
Term
Which command will allow you to manually create a named pipe?
Definition
mkfifo
Term
How can you have the wc command read directly from a named pipe called "mypipe"?
Definition
wc < mypipe
Term
Which section of the man pages describes file formats?
Definition
5
Term
Which section of the man pages describes special files?
Definition
4
Term
What command would display the man page of the useradd command by specifically indicating what section the useradd command is it?
Definition
man 8 useradd
Term
Which command option typically gives you a brief summary of command features?
Definition
--help
Term
When you reference a variable's values, you use the ___ character.
Definition
$
Supporting users have an ad free experience!