LPI LINUX ESSENTIALS COMPREHENSIVE
SCRIPT 2026 QUESTIONS AND SOLUTIONS
◉ b, c. Answer: Which of the following commands will output all of
the lines that contain either the string Fred or fred? (Choose Two
correct answers)
a) Egrep fred data_file
b) Grep -i fred data_file
c) Grep '[Ff]red' data_file
d) Grep '[f]red' data_file
e) Grep -v fred data_file
◉ a. Answer: Which one of the following statements concerning
Linux passwords is true?
a) Passwords are only stored in encrypted form
,b) Users cannot change their password once it has been set
c) All passwords can be decrypted using the system administrator's
master password
d) Passwords may never start with a non-letter
e) Passwords may be at most six characters long
◉ d. Answer: Which command would you use to get comprehensive
documentation about any command in Linux?
a) Help command
b) Get command
c) Locate command
d) Man command
e) Echo command
, ◉ e. Answer: While deleting all files beginning with the letter a there
was still the file Access.txt left. Assuming that it had the correct
ownership, why was it not deleted?
a) The file Access.txt was probably opened by another application
b) The file Access.txt was hidden
c) Rm had to be called with the option -R to delete all files
d) Files with extensions need a different treatment
e) Linux file names are case sensitive
◉ d. Answer: Which command displays the list of groups to which a
user belongs?
a) Isgroup
b) Whoami
c) Who
SCRIPT 2026 QUESTIONS AND SOLUTIONS
◉ b, c. Answer: Which of the following commands will output all of
the lines that contain either the string Fred or fred? (Choose Two
correct answers)
a) Egrep fred data_file
b) Grep -i fred data_file
c) Grep '[Ff]red' data_file
d) Grep '[f]red' data_file
e) Grep -v fred data_file
◉ a. Answer: Which one of the following statements concerning
Linux passwords is true?
a) Passwords are only stored in encrypted form
,b) Users cannot change their password once it has been set
c) All passwords can be decrypted using the system administrator's
master password
d) Passwords may never start with a non-letter
e) Passwords may be at most six characters long
◉ d. Answer: Which command would you use to get comprehensive
documentation about any command in Linux?
a) Help command
b) Get command
c) Locate command
d) Man command
e) Echo command
, ◉ e. Answer: While deleting all files beginning with the letter a there
was still the file Access.txt left. Assuming that it had the correct
ownership, why was it not deleted?
a) The file Access.txt was probably opened by another application
b) The file Access.txt was hidden
c) Rm had to be called with the option -R to delete all files
d) Files with extensions need a different treatment
e) Linux file names are case sensitive
◉ d. Answer: Which command displays the list of groups to which a
user belongs?
a) Isgroup
b) Whoami
c) Who