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

LPI 101-400 Free Practice Questions

Q1. - (Topic 3) 

Which of the following commands moves and resumes in the background the last stopped shell job? 

A. run 

B. bg 

C. fg 

D. back 

Answer:

Q2. - (Topic 1) 

Which of the following kernel parameters instructs the kernel to suppress most boot messages? 

A. silent 

B. verbose=0 

C. nomesg 

D. quiet 

Answer:

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

Q4. - (Topic 4) 

Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.) 

A. /sbin/mke2fs -j /dev/sdb1 

B. /sbin/mkfs -t ext3 /dev/sdb1 

C. /sbin/mkfs -c ext3 /dev/sdb1 

D. /sbin/mke3fs -j /dev/sdb1 

Answer: A,B 

Q5. - (Topic 1) 

Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.) 

A. shutdown -r now 

B. shutdown -r "rebooting" 

C. telinit 6 

D. telinit 0 

E. shutdown -k now "rebooting" 

Answer: A,C 

Q6. CORRECT TEXT - (Topic 3) 

Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.) 

Answer: HISTFILE 

Q7. CORRECT TEXT - (Topic 2) 

What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.) 

Answer: menu.lst, grub.conf, grub.cfg 

Q8. - (Topic 4) 

Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters? 

A. ext2 

B. ext3 

C. ext4 

D. XFS 

E. VFAT 

Answer:

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

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

Q11. - (Topic 1) 

Which of the following commands will write a message to the terminals of all logged in users? 

A. bcast 

B. mesg 

C. print 

D. wall 

E. yell 

Answer:

Q12. - (Topic 3) 

What is the difference between the i and a commands of the vi editor? 

A. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically. 

B. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor. 

C. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line. 

D. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing. 

Answer:

Q13. - (Topic 2) 

Which file should be edited to select the network locations from which Debian installation package files are loaded? 

A. /etc/dpkg/dpkg.cfg 

B. /etc/apt/apt.conf 

C. /etc/apt/apt.conf.d 

D. /etc/apt/sources.list 

E. /etc/dpkg/dselect.cfg 

Answer:

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

Q15. - (Topic 3) 

What happens after issuing the command vi without any additional parameters? 

A. vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited. 

B. vi starts and requires the user to explicitly either create a new or load an existing file. 

C. vi exits with an error message as it cannot be invoked without a file name to operate on. 

D. vi starts in command mode and opens a new empty file. 

E. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text. 

Answer:

Q16. - (Topic 4) 

Which of the following commands changes the ownership of file.txt to the user dan and the group staff? 

A. chown dan/staff file.txt 

B. chown dan:staff file.txt 

C. chown -u dan -g staff file.txt 

D. chown dan -g staff file.txt 

Answer:

Q17. - (Topic 3) 

Which shell command is used to continue background execution of a suspended command? 

A. & 

B. bg 

C. cont 

D. exec 

E. :& 

Answer:

Q18. - (Topic 4) 

What does the command mount -a do? 

A. It mounts all available filesystems onto the current directory. 

B. It shows all mounted filesystems. 

C. It mounts all user mountable filesystems for the current user. 

D. It mounts all filesystems listed in /etc/fstab which have the option auto set. 

E. It mounts all filesystems listed in /etc/fstab which have the option noauto set. 

Answer:

START 101-400 EXAM