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

LPI 101-400 Free Practice Questions

Q1. CORRECT TEXT - (Topic 3) 

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.) 

Answer: jobs 

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

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

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

Q5. - (Topic 3) 

Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard? 

A. SIGTERM 

B. SIGINT 

C. SIGSTOP 

D. SIGKILL 

Answer:

Q6. - (Topic 2) 

What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.) 

A. To create RAID 9 arrays. 

B. To dynamically change the size of logical volumes. 

C. To encrypt logical volumes. 

D. To create snapshots. 

E. To dynamically create or delete logical volumes. 

Answer: B,D,E 

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

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

Q9. - (Topic 2) 

Which of the following environment variables overrides or extends the list of directories holding shared libraries? 

A. LD_LOAD_PATH 

B. LD_LIB_PATH 

C. LD_LIBRARY_PATH 

D. LD_SHARE_PATH 

E. LD_RUN_PATH 

Answer:

Q10. - (Topic 3) 

Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line? 

A. i (lowercase) 

B. P (uppercase) 

C. p (lowercase) 

D. U (uppercase) 

E. u (lowercase) 

Answer:

Q11. - (Topic 3) 

In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows? 

A. By using the command :repeat followed by the number and the command. 

B. By specifying the number right in front of a command such as 4l or 2yj. 

C. By selecting all affected lines using the shift and cursor keys before applying the command. 

D. By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times. 

Answer:

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

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

Q14. - (Topic 3) 

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.) 

A. uptime 

B. up 

C. top 

D. uname -u 

E. time –up 

Answer: A,C 

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

Q16. - (Topic 4) 

Which of the following commands can be used to display the inode number of a given file? 

A. inode 

B. ls 

C. ln 

D. cp Answer: B 

Answer:

Q17. - (Topic 3) 

What is the output of the following command? 

echo "Hello World" | tr -d aieou 

A. Hello World 

B. eoo 

C. Hll Wrld 

D. eoo Hll Wrld 

Answer:

Q18. - (Topic 4) 

After running the command umount /mnt, the following error message is displayed: 

umount: /mnt: device is busy. 

What is a common reason for this message? 

A. The kernel has not finished flushing disk writes to the mounted device. 

B. A user has a file open in the /mnt directory. 

C. Another file system still contains a symlink to a file inside /mnt. 

D. The files in /mnt have been scanned and added to the locate database. 

E. The kernel thinks that a process is about to open a file in /mnt for reading. 

Answer:

START 101-400 EXAM