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

certleader.com

Q1. - (Topic 3) 

Which of the following commands is used to change options and positional parameters for a running Bash? 

A. history 

B. set 

C. bashconf 

D. setsh 

E. envsetup 

Answer:

Q2. - (Topic 1) 

During a system boot cycle, what program is executed after the BIOS completes its tasks? 

A. The bootloader 

B. The inetd program 

C. The init program 

D. The kernel 

Answer:

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

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

Q5. - (Topic 4) 

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command? 

A. The command is SetUID and it will be executed with the effective rights of the owner. 

B. The command will be executed with the effective rights of the group instead of the owner. 

C. The execute flag is not set for the owner. Therefore the SetUID flag is ignored. 

D. The command will be executed with the effective rights of the owner and group. 

Answer:

Q6. - (Topic 3) 

In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories? 

A. -dirmax 

B. -maxdepth 

C. -maxlevels 

D. -n 

E. -s 

Answer:

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

Q8. - (Topic 4) 

After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation? 

A. foo and bar would both be removed. 

B. foo would be removed while bar would remain accessible. 

C. foo would be removed. bar would still exist but would be unusable. 

D. Both foo and bar would remain accessible. 

E. The user is prompted whether bar should be removed, too. 

Answer:

Q9. - (Topic 3) 

In Bash, inserting 1>&2 after a command redirects 

A. standard error to standard input. 

B. standard input to standard error. 

C. standard output to standard error. 

D. standard error to standard output. 

E. standard output to standard input. 

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: