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

LPI 101-400 Free Practice Questions

Q1. - (Topic 4) 

Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem? 

A. mod2fs 

B. fsck 

C. tune2fs 

D. mke2fs 

E. fixe2fs 

Answer:

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

Q3. - (Topic 3) 

When given the following command line. 

echo "foo bar" | tee bar | cat 

Which of the following output is created? 

A. cat 

B. foo bar 

C. tee bar 

D. bar 

E. foo 

Answer:

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

Q5. - (Topic 3) 

Which of the following commands displays the contents of a gzip compressed tar archive? 

A. gzip archive.tgz | tar xvf -

B. tar ztf archive.tgz 

C. gzip -d archive.tgz | tar tvf -

D. tar cf archive.tgz 

Answer:

Q6. CORRECT TEXT - (Topic 3) 

Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.) 

Answer: mkdir, /usr/bin/mkdir 

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

Q8. - (Topic 3) 

Which of the following commands will print the last 10 lines of a text file to the standard output? 

A. cat -n 10 filename 

B. dump -n 10 filename 

C. head -n 10 filename 

D. tail -n 10 filename 

Answer:

Q9. 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 

Q10. - (Topic 3) 

What does the ? symbol within regular expressions represent? 

A. Match the preceding qualifier one or more times. 

B. Match the preceding qualifier zero or more times. 

C. Match the preceding qualifier zero or one times. 

D. Match a literal ? character. 

Answer:

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

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

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

Q14. - (Topic 4) 

Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ? 

A. 0017 

B. 0640 

C. 0038 

D. 0027 

Answer:

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. CORRECT TEXT - (Topic 1) 

Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.) 

Answer: cmdline, /proc/cmdline 

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

Q18. - (Topic 3) 

Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.) 

A. < 

B. <<< 

C. > 

D. >>> 

E. %> 

Answer: A,B,C 

START 101-400 EXAM