QUESTIONS WITH ANSWERS
ALREADY GRADED A+
You are at a terminal command prompt in a Linux GUI interface that
someone else has been using and want to find out which shell type is
currently being used by the terminal.
What command can you enter to find out the current shell type? -
CORRECT ANSWER>>>>echo $0
In which of the following files is the user's preferred shell normally set?
- CORRECT ANSWER>>>>/etc/pass wd
Which of the following is the standard shell for MOST Linux
computers? - CORRECT ANSWER>>>>Bourne again shell (bash)
What would you enter at a command prompt to start a new Bourne again
shell (Bash) session? - CORRECT ANSWER>>>>bash
You are managing a Linux server with a console (without a GUI
installed).
Which of the following key combinations would you press to switch to
the fourth shell session? - CORRECT ANSWER>>>>Ctrl+Alt+F4
A Linux user has an executable file named ni that can save a snapshot of
network information with the date and time in a log file. The executable
ni file is in the /root directory, and /root is the current working directory.
Which of the following commands would run the executable file?
(Select two.) - CORRECT ANSWER>>>>./ni
/root/ni
As a Linux user, you have access to an executable file named myapp. It's
found in the current directory, but not in the command path.
,What would you enter at the command prompt to start the myapp file
and replace the shell with myapp process? - CORRECT
ANSWER>>>>exec ./myapp
Which of the following commands should a Linux user enter to see a list
of all the commands the user recently ran at the command prompt? -
CORRECT ANSWER>>>>history
What would you enter at the command prompt to display the current
working directory? - CORRECT ANSWER>>>>pwd
Which of the following is displayed when the uname -a command is
run? - CORRECT ANSWER>>>>All system information
You have just entered the apropos grep command at the command
prompt. What can you expect to be displayed? - CORRECT
ANSWER>>>>A one-line man page description for the grep command.
Which of the following man page sections shows a list of options
available for a Linux command and explains what the options do? -
CORRECT ANSWER>>>>DESCRIPTION
You have forgotten what information is provided by the whoami
command, and simply want a short description of the command.
Which of the following help commands could you enter to view that
short description? - CORRECT ANSWER>>>>help -d whoami
If you are viewing the contents of a man page, which key can you press
to get back to the beginning of the page? - CORRECT
ANSWER>>>>Home
Which of the following commands would you enter to view info node
information about the sysctrl command? - CORRECT
ANSWER>>>>info sysctrl
, Which of the following are characteristics make info nodes different
from man pages? (Select two.) - CORRECT ANSWER>>>>They
contain hypertext links to navigate between nodes.
They are more verbose and emphasize how to use commands and
utilities.
You want to search all the man pages for information available for the
Bluetooth protocol.
Which of the following commands would you enter to display this
information? - CORRECT ANSWER>>>>man -k bluetooth
You are working on a Linux system and need more information about
the uname command. What would you enter at the command prompt to
learn about the uname command syntax and options? - CORRECT
ANSWER>>>>man uname
You want to view the Linux help information for the mkdir command.
While viewing the information, you want to be able to scroll through the
onscreen help.
What is the command you would use to display and be able to scroll
through the mkdir help information? - CORRECT ANSWER>>>>mkdir
--help | more
Which of the following commands searches man pages for a specific
keyword? (Select three.) - CORRECT ANSWER>>>>whatis
man -k
apropos
Which of the following nano editor keyboard shortcuts displays help
text, including a list of all keyboard shortcuts? - CORRECT
ANSWER>>>>^G (Ctrl+G)
Which of the following nano text editor features makes it easier for
beginners to learn than the vi text editor? - CORRECT