101-400 Premium Bundle

101-400 Premium Bundle

LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2 Certification Exam

4.5 
(16200 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 23, 2024Last update

LPI 101-400 Free Practice Questions

Q1. - (Topic 4) 

Which of the following commands makes /bin/foo executable by everyone but writable only by its owner? 

A. chmod u=rwx,go=rx /bin/foo 

B. chmod o+rwx,a+rx /bin/foo 

C. chmod 577 /bin/foo 

D. chmod 775 /bin/foo 

Answer:

Q2. - (Topic 3) 

Which grep command will print only the lines that do not end with a / in the file foo? 

A. grep '/$' foo 

B. grep '/#' foo 

C. grep -v '/$' foo 

D. grep -v '/#' foo 

Answer:

Q3. - (Topic 3) 

Which of the following shell redirections will write standard output and standard error output to a file named filename? 

A. 2>&1 >filename 

B. >filename 2>&1 

C. 1>&2>filename 

D. >>filename 

E. 1&2>filename 

Answer:

Q4. - (Topic 2) 

When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.) 

A. Timestamps 

B. MD5 checksums 

C. Inodes 

D. File sizes 

E. GnuPG signatures 

Answer: A,B,D 

Q5. - (Topic 1) 

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.) 

A. shutdown -R 1 now 

B. shutdown -single now 

C. init 1 

D. telinit 1 

E. runlevel 1 

Answer: C,D 

Q6. - (Topic 2) 

Which file should be edited to select the network locations from which Debian installation package files are loaded? 

A. /etc/dpkg/dpkg.cfg 

B. /etc/apt/apt.conf 

C. /etc/apt/apt.conf.d 

D. /etc/apt/sources.list 

E. /etc/dpkg/dselect.cfg 

Answer:

Q7. - (Topic 1) 

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target? 

A. systemd.target=rescue.target 

B. systemd.runlevel=rescue.target 

C. systemd.service=rescue.target 

D. systemd.default=rescue.target 

E. systemd.unit=rescue.target 

Answer:

Q8. - (Topic 3) 

What is the purpose of the Bash built-in export command? 

A. It allows disks to be mounted remotely. 

B. It runs a command as a process in a subshell. 

C. It makes the command history available to subshells. 

D. It sets up environment variables for applications. 

E. It shares NFS partitions for use by other systems on the network. 

Answer:

Q9. - (Topic 3) 

Which of the following command sets the Bash variable named TEST with the content FOO? 

A. set TEST="FOO" 

B. TEST = "FOO" 

C. var TEST="FOO" 

D. TEST="FOO" 

Answer:

Q10. - (Topic 2) 

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect? 

A. kill -HUP $(pidof grub) 

B. grub-install 

C. grub 

D. No action is required 

Answer:

Q11. - (Topic 3) 

Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached? 

A. << 

B. <| 

C. !< 

D. &< 

Answer:

Q12. - (Topic 1) 

Which of the following commands will write a message to the terminals of all logged in users? 

A. bcast 

B. mesg 

C. print 

D. wall 

E. yell 

Answer:

Q13. - (Topic 3) 

Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types? 

A. magic 

B. type 

C. file 

D. pmagic 

E. hash 

Answer:

Q14. - (Topic 3) 

Which shell command is used to continue background execution of a suspended command? 

A. & 

B. bg 

C. cont 

D. exec 

E. :& 

Answer:

Q15. - (Topic 2) 

Which of the following commands is used to update the list of available packages when using dpkg based package management? 

A. apt-get update 

B. apt-get upgrade 

C. apt-cache update 

D. apt-get refresh 

E. apt-cache upgrade 

Answer:

Q16. - (Topic 3) 

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log? 

A. cat < myapp | cat > file1.log 

B. myapp 0>&1 | cat > file1.log 

C. myapp | cat > file1.log 

D. myapp | tee file1.log 

E. tee myapp file1.log 

Answer:

Q17. - (Topic 4) 

Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH? 

A. apropos 

B. which 

C. find 

D. query 

E. whereis 

Answer:

Q18. - (Topic 1) 

Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.) 

A. shutdown -r now 

B. shutdown -r "rebooting" 

C. telinit 6 

D. telinit 0 

E. shutdown -k now "rebooting" 

Answer: A,C 

START 101-400 EXAM