Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 82 pages
Exam (elaborations)

Testout Linux Pro UPDATED ACTUAL Exam Questions and CORRECT Answers

Document preview thumbnail
Preview 4 out of 82 pages

Testout Linux Pro UPDATED ACTUAL Exam 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

Content preview

Testout Linux Pro UPDATED ACTUAL
Exam 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

Document information

Uploaded on
April 19, 2025
Number of pages
82
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$18.39

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MGRADES
4.0
(230)
Sold
1515
Followers
106
Items
107179
Last sold
1 day ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions