Ensurepass

QUESTION 31 CORRECT TEXT

You wish to execute two commands, one after the other. However, you only want the second command to execute if the first is successful. Which character(s) do you put between the commands on the command line to accomplish this?

Answer: &&


QUESTION
32

In the vi editor, which of the following commands will delete the current line at the cursor and the 16 lines following it (17 lines total)?

A. 17d

B. 17dd

C. 17x

D. d17d

E. 16d

Answer: B


QUESTION
33 CORRECT TEXT

You wish to send the output of a command to standard output (stdout) and save it to a file. The command to use is ______________. (Do not specify arguments)

Answer: tee


QUESTION
34

What key sequence will suspend the current process and return you to a shell prompt?

A. Ctrl-z

B. Ctrl-c

C. Ctrl-x

D. Ctrl-d

Answer: A


QUESTION
35

Which TWO commands will find the path for the binary vim?

A. man vim

B. whereis vim

C. apropos vim

D. which vim

Answer: B, D


QUESTION
36 CORRECT TEXT

What command returns the first few lines of a given file?

Answer: head


QUESTION
37

What command changes the priority of the process running with process id of 12345 to the highest priority?

A. /usr/bin/renice +20 1234

B. /usr/bin/renice -20 12345

C. /bin/setpriority +20 12345

D. /bin/setpriority -20 12345

Answer: B


QUESTION
38

You want to save vi changes to the file myfile with :w!, but vi complains it can not write to the file. Therefore, you want to check the write permissions on the file. To do this without leaving vi, you type:

A. :!ls -l myfile

B. :\ls -l myfile

C. esc :ls -l myfile

D. :?ls -l myfile

Answer: A


QUESTION
39

Which of the following GNU commands would be the most likely command you’d use to find the system load average?

A. top

B. nice

C. loadavg

D. cpustat

E. ps

Answer: A


QUESTION
40

Which of the following commands is equivalent to kill 1234?

A. kill -1 1234 or kill -s SIGHUP 1234

B. kill -2 1234 or kill -s SIGINT 1234

C. kill -3 1234 or kill -s SIGQUIT 1234

D. kill -9 1234 or kill -s SIGKILL 1234

E. kill -15 1234 or kill -s SIGTERM 1234

Answer: E

 

Download Latest LPI 117-101 DUMPS Real Free Tests , help you to pass exam 100%.

Comments are closed.