Testout Linux Pro UPDATED Questions and CORRECT Answers
3 views 0 purchase
Course
Linux Pro
Institution
Linux Pro
Testout Linux Pro UPDATED Questions
and CORRECT Answers
1.1.7 You have an executable file named ni that allows you to save a snapshot of your
network information with the date and time into a log file. The file is in the /root directory,
and /root is the current working directory. How would ...
Testout Linux Pro UPDATED Questions
and CORRECT Answers
1.1.7 You have an executable file named ni that allows you to save a snapshot of your
network information with the date and time into a log file. The file is in the /root directory,
and /root is the current working directory. How would you run the executable file? (select
two) - CORRECT ANSWER✔✔- /root/ni
./ni
1.1.7 Which of the following options is the standard shell for most Linux computers? -
CORRECT ANSWER✔✔- Bourne-again shell (bash)
1.1.7 What would you enter at the command prompt to display the present working directory?
- CORRECT ANSWER✔✔- pwd
1.1.7 What would you enter at the command prompt to start a new Bourne-again shell (bash)
session? - CORRECT ANSWER✔✔- bash
1.1.7 What is the result of the uname -a command? - CORRECT ANSWER✔✔- All system
information is displayed on the screen.
1.1.7 What command should you enter to see a list of all the commands you recently used at
the command prompt? - CORRECT ANSWER✔✔- history
1.1.7 You have the myapp executable file. It is 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
1.2.7 Which of the following commands could you use to search man pages for a specific
keyword? (select three) - CORRECT ANSWER✔✔- whatis
apropos
man -k
,1.2.7 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
info uname
uname --help
1.2.7 What command can be used on most Linux distributions to find the directories where
the man pages are kept? - CORRECT ANSWER✔✔- echo $MANPATH
1.2.7 Following is a list of the first four sections typically found in a man page. Which of
these shows a list of options available for a Linux command and explain what the options do
- CORRECT ANSWER✔✔- DESCRIPTION
1.2.7 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
1.3.6 Which key combination should you press in vi to save the file you are working on and
quit? - CORRECT ANSWER✔✔- :wq
1.3.6 You need to create a new text file with the name network.txt in the current directory.
Which command starts vi and creates the file? - CORRECT ANSWER✔✔- vi network.txt
1.3.6 You have opened the /root/myscript file in vi. While looking at the file, your soda
spilled, and you hit several keys on the keyboard trying to pick it back up. There are extra
characters everywhere in the file, and you know you can't fix it. How do you exit vi without
saving the changes? - CORRECT ANSWER✔✔- :q!
1.3.6 A friend sent you a shell script file that is 117 lines long. He wants you to examine code
on lines 82 through 87. What command would you enter while in vi command mode to go
directly to line 82? - CORRECT ANSWER✔✔- #82
1.3.6 After opening a file in vi, you want to switch from command mode to command line
mode. What key should you enter? - CORRECT ANSWER✔✔- :
,1.3.6 You made a few changes to the /boot/grub/grub.conf file and now you need to exit out
of insert mode, save the changes, and quit. What should you do? (Select two. Each answer is
a required part of the solution.) - CORRECT ANSWER✔✔- Press Esc
Type :wq
1.3.6 What are two methods to exit vi from command mode? (Select two. Each answer is an
independent solution.) - CORRECT ANSWER✔✔- Type ZZ
Type :wq
1.3.6 The inital vim mode used when vim is started. It has commands that cut and replace
text, and it is the mode vi uses to enter the other modes. - CORRECT ANSWER✔✔-
Command mode
The vim mode that works with the file system. Use it to save files after editing them. -
CORRECT ANSWER✔✔- Command line mode
The mode that vim uses to write and edit text in the file. - CORRECT ANSWER✔✔- Edit
mode
1.3.6 What command would you enter while in vi command mode to find the term Sam? -
CORRECT ANSWER✔✔- /Sam
1.3.6 While in command mode, you copied a whole line of text to memory. You navigated to
a different location in the file, and now you need to place the line of text. What command
should you use? - CORRECT ANSWER✔✔- p
1.3.6 What command would you enter while in vi command mode to copy an entire line of
text? - CORRECT ANSWER✔✔- yy
1.3.6 Which of the following commands will cut an entire line from a file while in vi
command mode? - CORRECT ANSWER✔✔- dd
, 1.3.6 You are editing a text file with vi and need to open a new line above the one you are
currently working on. What key should you press to accomplish this? - CORRECT
ANSWER✔✔- O
While in vi command mode what does "k" do? - CORRECT ANSWER✔✔- Move the cursor
up a line
While in vi command mode what does "h" do? - CORRECT ANSWER✔✔- Move the cursor
one space to the left
While in vi command mode what does "l" do? - CORRECT ANSWER✔✔- Move the cursor
one space to the right.
while in vi command mode what does "j" do? - CORRECT ANSWER✔✔- Move the cursor
down a line.
1.4.4 Which of the following commands will create a shortcut to the tail -f /var/log/messages
command? - CORRECT ANSWER✔✔- alias sysmesg="tail -f /var/log/messages"
1.4.4 Which command will display a list of the currently defined aliases on the system? -
CORRECT ANSWER✔✔- alias
1.4.4 What commonly predefined alias is configured to run the ls -l command? - CORRECT
ANSWER✔✔- ll
1.4.4 You must do which of the following to define a persistent alias? - CORRECT
ANSWER✔✔- Add the command defining the alias to the appropriate shell configuration
file.
1.4.4 The user mbrown has a directory named logs in her home directory that is regularly
updated with new log files when certain system events occur. She runs the following
commands several times a week to check this directory:
cd /home/mbrown/logs
ls -al
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller MGRADES. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.99. You're not tied to anything after your purchase.