101-400 Exam - LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2

certleader.com

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

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

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

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

Q5. - (Topic 4) 

What is the purpose of the Filesystem Hierarchy Standard? 

A. It is a security model used to ensure files are organized according to their permissions and accessibility. 

B. It provides unified tools to create, maintain and manage multiple filesystems in a common way. 

C. It defines a common internal structure of inodes for all compliant filesystems. 

D. It is a distribution neutral description of locations of files and directories. 

Answer:

Q6. - (Topic 2) 

When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.) 

A. Timestamps 

B. MD5 checksums 

C. Inodes 

D. File sizes 

E. GnuPG signatures 

Answer: A,B,D 

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

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

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

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