Last Updated on October 23, 2022 by InfraExam
Ch2 Using the Shell Exam
Which command will send text to the terminal display:
To display your current location within the filesystem, you can type:
The _____ command displays information about the Linux kernel:
A command can take the form of:
- A block
- A configuration file
- A function
- A variable
- An alias
- A program built-in to the shell
Which of the following are valid command lines?
ls /etc -l
ls -l /etc
-l ls /etc
You want to execute the
lscommand with two options:
-l. Which of the following are valid ways to run this command:
ls -r -l
ls -l -r
ls --r --l
You can pass arguments to long options by using which of the following techniques:
- –option argument
When typing a command, you can have the bash shell complete the command by pressing which key?
- The Tab key
- The Up Arrow key
- The Backspace key
- The Enter key
- The Del key
Long command options are preceded by which two characters?
Which two characters do you use to tell the command that you are finished providing options and that the remaining data on the command line is arguments?
The _____ option to the
unamecommand will display the kernel name.
Which command is used in order to view the manual page for a topic?
The ______ command will display your current working directory.
manual lswill provide detailed information about how the
True or False?
Which of the following man page sections will show the syntax for how a command should be executed?
- The DESCRIPTION section
- The NAME section
- The FILES section
- The SYNOPSIS section
[ ]characters around
dayin the example
cal [-smjy13] [[[day] month] year]means that day is:
- An argument that must be “day” and nothing else
- An option, not an argument
- This is invalid syntax
- These are required options
- These three options are different
- These three options mean the same thing
man 5 passwdwill:
- Print the first five man pages that refer to the term passwd.
- Not work; you can’t give a numeric argument to the man command.
- Display the man page in Section 5 for passwd.
- Display the first five lines of the man page for the passwd command.
To see a list of commands that are available while viewing a man page, you can type the __ character.
To search for something while viewing a man page, you first type a __ character.
Special file man pages are typically located in section ____.
System Administration man pages are typically located in section ___.
Shell command man pages are typically located in section ___.
A pair of single quotes
'will prevent the shell from interpreting any special character.
True or False?