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 
(12030 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 23, 2024Last update

LPI 101-400 Free Practice Questions

Q1. - (Topic 1) 

Which of the following statements is correct when talking about /proc/? 

A. All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot. 

B. All files within /proc/ are read-only and their contents cannot be changed. 

C. All changes to files in /proc/ are immediately recognized by the kernel. 

D. All files within /proc/ are only readable by the root user. 

Answer:

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

Q3. - (Topic 1) 

Which of the following are init systems used within Linux systems? (Choose THREE correct answers.) 

A. startd 

B. systemd 

C. Upstart 

D. SysInit 

E. SysV init 

Answer: B,C,E 

Q4. - (Topic 3) 

Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt? 

A. file /tmp/myfile.txt 

B. echo "Hello" >/tmp/myfile.txt 

C. sed -ie "s/1/2/" /tmp/myfile.txt 

D. echo -n "Hello" >>/tmp/myfile.txt 

E. touch /tmp/myfile.txt 

Answer:

Q5. - (Topic 4) 

Creating a hard link to an ordinary file returns an error. What could be the reason for this? 

A. The source file is hidden. 

B. The source file is read-only. 

C. The source file is a shell script. 

D. The source file is already a hard link. 

E. The source and the target are on different filesystems. 

Answer:

Q6. - (Topic 3) 

Which of the following commands can be used to create a USB storage media from a disk image? 

A. gdisk 

B. dd 

C. cc 

D. fdisk 

E. mount 

Answer:

Q7. - (Topic 3) 

What command will generate a list of user names from /etc/passwd along with their login shell? 

A. column -s : 1,7 /etc/passwd 

B. chop -c 1,7 /etc/passwd 

C. colrm 1,7 /etc/passwd 

D. cut -d: -f1,7 /etc/passwd 

Answer:

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

Q9. - (Topic 4) 

Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.) 

A. FIND 

B. ID 

C. LABEL 

D. NAME 

E. UUID 

Answer: C,E 

Q10. - (Topic 3) 

What is the default nice level when a process is started using the nice command? 

A. -10 

B. 10 

C. 20 D. 0 

Answer:

Q11. - (Topic 2) 

Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it? 

A. dd if=/dev/zero of=/dev/sda bs=512 

B. dd if=/dev/zero of=/dev/sda bs=512 count=1 

C. dd if=/dev/zero of=/dev/sda bs=440 count=1 

D. dd if=/dev/zero of=/dev/sda bs=440 

Answer:

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

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

Q14. - (Topic 3) 

Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.) 

A. esc ZZ 

B. ctrl :w! 

C. esc zz 

D. esc :wq! 

E. ctrl XX 

Answer: A,D 

Q15. - (Topic 4) 

Which of the following is the device file name for the second partition on the only SCSI drive? 

A. /dev/hda1 

B. /dev/sda2 

C. /dev/sd0a2 

D. /dev/sd1p2 

Answer:

Q16. - (Topic 2) 

Which of the following is correct when talking about mount points? 

A. Every existing directory can be used as a mount point. 

B. Only empty directories can be used as a mount point. 

C. Directories need to have the SetUID flag set to be used as a mount point. 

D. Files within a directory are deleted when the directory is used as a mount point. 

Answer:

Q17. CORRECT TEXT - (Topic 3) 

Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files? 

killall -s _______ daemon 

Answer: HUP, SIGHUP, 1 

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

START 101-400 EXAM