CompTIA Linux+ [Powered by LPI] Exam 1 - LX0-101 Exam Practice Test
CORRECT TEXT
In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)? Enter the correct vi command without spaces. (Please enter only a single answer.)
In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)? Enter the correct vi command without spaces. (Please enter only a single answer.)
Correct Answer:
17y,17y,17yy,17yy
An administrator has read/write permissions on an ordinary file foo. The administrator has just run ln foo bar. Which of the following would occur if the administrator ran rm foo?
Correct Answer: E
Vote an answer
CORRECT TEXT
What is the name of the main configuration file for GRUB? (Please specify the file name with no path information).
What is the name of the main configuration file for GRUB? (Please specify the file name with no path information).
Correct Answer:
grub.cfg,grub.conf,menu.lst
An administrator wishes to kill a process with a PID of 123. Which of the following commands will allow the process to "clean up" before exiting?
Correct Answer: D
Vote an answer
All of the following commands will execute the bash script /usr/local/bin/runme.sh EXCEPT:
Correct Answer: A
Vote an answer
CORRECT TEXT
Which program finds only files that are in an administrator's PATH?
Which program finds only files that are in an administrator's PATH?
Correct Answer:
/usr/bin/which,which
Which of the following sed commands will replace all instances of the string foo with the string foobar changing the file file1.txt in place?
Correct Answer: E
Vote an answer
Which of the following would be accomplished if the below line is run as root? chown -R bert /home/bert/*
Correct Answer: A
Vote an answer
All of the following commands will execute the bash script /usr/local/bin/runme.sh EXCEPT:
Correct Answer: A
Vote an answer