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

LPI 101-400 Free Practice Questions

Q1. - (Topic 3) 

In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories? 

A. -dirmax 

B. -maxdepth 

C. -maxlevels 

D. -n 

E. -s 

Answer:

Q2. - (Topic 4) 

Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed? (Choose TWO correct answers.) 

A. ext3 

B. JFS 

C. ext2 

D. XFS 

E. procfs 

Answer: A,C 

Q3. - (Topic 4) 

Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created? 

A. File size 

B. Modify timestamp 

C. Link count 

D. Inode number 

E. Permissions 

Answer:

Q4. CORRECT TEXT - (Topic 4) 

Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.) 

Answer: 0077, 077 

Q5. CORRECT TEXT - (Topic 1) 

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

Answer: dmesg, /bin/dmesg 

Q6. - (Topic 3) 

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting? 

A. kill -PIPE 123 

B. kill -KILL 123 

C. kill -STOP 123 

D. kill -TERM 123 

Answer:

Q7. - (Topic 3) 

Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter? 

A. sed '/bob/Bob' letter > newletter 

B. sed s/bob/Bob/ letter < newletter 

C. sed 's/bob/Bob' letter > newletter 

D. sed 's/bob/Bob/g' letter > newletter 

E. sed 's/bob, Bob/' letter > newletter 

Answer:

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

Q9. - (Topic 1) 

During a system boot cycle, what program is executed after the BIOS completes its tasks? 

A. The bootloader 

B. The inetd program 

C. The init program 

D. The kernel 

Answer:

Q10. - (Topic 1) 

Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination? 

A. /etc/keys 

B. /proc/keys 

C. /etc/inittab 

D. /proc/inittab 

E. /etc/reboot 

Answer:

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

Q12. - (Topic 3) 

When running the command 

sed -e "s/a/b/" /tmp/file >/tmp/file 

While /tmp/file contains data, why is /tmp/file empty afterwards? 

A. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection. 

B. The command sed did not match anything in that file therefore the output is empty. 

C. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading. 

D. Redirection for shell commands do not work using the > character. It only works using the | character instead. 

Answer:

Q13. - (Topic 4) 

Which of the following commands can be used to locate programs and their corresponding man pages and configuration files? 

A. dirname 

B. which 

C. basename 

D. query 

E. whereis 

Answer:

Q14. - (Topic 3) 

Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.) 

A. find /tmp -uid root -print 

B. find -path /tmp -uid root 

C. find /tmp -user root -print 

D. find /tmp -user root 

E. find -path /tmp -user root –print 

Answer: C,D 

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

Q16. - (Topic 4) 

Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting? 

A. tune2fs -d 200 /dev/sda1 

B. tune2fs -c 200 /dev/sda1 

C. tune2fs -i 200 /dev/sda1 

D. tune2fs -n 200 /dev/sda1 

E. tune2fs --days 200 /dev/sda1 

Answer:

Q17. - (Topic 3) 

What is the effect of the egrep command when the -v option is used? 

A. It enables color to highlight matching parts. 

B. It only outputs non-matching lines. 

C. It shows the command's version information. 

D. It changes the output order showing the last matching line first. 

Answer:

Q18. - (Topic 2) 

Which of the following commands updates the linker cache of shared libraries? 

A. mkcache 

B. soconfig 

C. mkldconfig 

D. lddconfig 

E. ldconfig 

Answer:

START 101-400 EXAM