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 
(4770 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
September 29, 2024Last update

LPI 101-400 Free Practice Questions

Q1. - (Topic 1) 

Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.) 

A. 0 

B. 1 

C. 3 

D. 5 

E. 6 

Answer: A,E 

Q2. - (Topic 4) 

What is the purpose of the Filesystem Hierarchy Standard? 

A. It is a security model used to ensure files are organized according to their permissions and accessibility. 

B. It provides unified tools to create, maintain and manage multiple filesystems in a common way. 

C. It defines a common internal structure of inodes for all compliant filesystems. 

D. It is a distribution neutral description of locations of files and directories. 

Answer:

Q3. - (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 

Q4. CORRECT TEXT - (Topic 1) 

Which command will display messages from the kernel that were output during the normal boot sequence? 

Answer: dmesg, /bin/dmesg 

Q5. - (Topic 3) 

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory? 

A. rmdir '~/\dir' 

B. rmdir "~/\dir" 

C. rmdir ~/'dir' 

D. rmdir ~/\dir 

E. rmdir ~/\\dir 

Answer:

Q6. - (Topic 3) 

In the vi editor, which of the following commands will copy the current line into the vi buffer? 

A. c 

B. cc 

C. 1c 

D. yy 

E. 1y 

Answer:

Q7. CORRECT TEXT - (Topic 2) 

Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.) 

Answer: /tmp, tmp, /var/tmp, /tmp/, /var/tmp/ 

Q8. - (Topic 3) 

Regarding the command: 

nice -5 /usr/bin/prog 

Which of the following statements is correct? 

A. /usr/bin/prog is executed with a nice level of -5. 

B. /usr/bin/prog is executed with a nice level of 5. 

C. /usr/bin/prog is executed with a priority of -5. 

D. /usr/bin/prog is executed with a priority of 5. 

Answer:

Q9. - (Topic 2) 

Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user? 

A. hidemenu 

B. splash 

C. timeout 

D. showmenu 

Answer:

Q10. - (Topic 3) 

Which of the following commands will reduce all consecutive spaces down to a single space? 

A. tr '\s' ' ' < a.txt > b.txt 

B. tr -c ' ' < a.txt > b.txt 

C. tr -d ' ' < a.txt > b.txt 

D. tr -r ' ' '\n' < a.txt > b.txt 

E. tr -s ' ' < a.txt > b.txt 

Answer:

Q11. - (Topic 4) 

Which of the following file permissions belong to a symbolic link? 

A. -rwxrwxrwx 

B. +rwxrwxrwx 

C. lrwxrwxrwx 

D. srwxrwxrwx 

Answer:

Q12. - (Topic 3) 

Which character, added to the end of a command, runs that command in the background 

as a child process of the current shell? 

A. ! 

B. + 

C. & 

D. % 

E. # 

Answer:

Q13. - (Topic 1) 

Which of the following information is stored within the BIOS? (Choose TWO correct answers.) 

A. Boot device order 

B. Linux kernel version 

C. Timezone 

D. Hardware configuration 

E. The system's hostname 

Answer: A,D 

Q14. - (Topic 4) 

In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.) 

A. cat /proc/self/mounts 

B. free 

C. mount 

D. lsmounts 

E. cat /proc/filesystems 

Answer: A,C 

Q15. - (Topic 3) 

In Bash, inserting 1>&2 after a command redirects 

A. standard error to standard input. 

B. standard input to standard error. 

C. standard output to standard error. 

D. standard error to standard output. 

E. standard output to standard input. 

Answer:

Q16. - (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:

Q17. - (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 

Q18. - (Topic 3) 

Which of the following files, located in the user home directory, is used to store the Bash history? 

A. .bash_history 

B. .bash_histfile 

C. .history 

D. .bashrc_history 

E. .history_bash 

Answer:

START 101-400 EXAM