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

certleader.com

Q1. - (Topic 2) 

Which of the following commands lists the dependencies of a given dpkg package? 

A. apt-cache depends-on package 

B. apt-cache dependencies package 

C. apt-cache depends package 

D. apt-cache requires package 

Answer:

Q2. - (Topic 2) 

Which of the following commands is used to update the list of available packages when using dpkg based package management? 

A. apt-get update 

B. apt-get upgrade 

C. apt-cache update 

D. apt-get refresh 

E. apt-cache upgrade 

Answer:

Q3. - (Topic 3) 

What is the default action of the split command on an input file? 

A. It will break the file into new files of 1,024 byte pieces each. 

B. It will break the file into new files of 1,000 line pieces each. 

C. It will break the file into new files of 1,024 kilobyte pieces each. 

D. It will break the file into new files that are no more than 5% of the size of the original file. 

Answer:

Q4. - (Topic 4) 

Which of the following commands will change the quota for a specific user? 

A. edquota 

B. repquota 

C. quota -e 

D. quota 

Answer:

Q5. - (Topic 2) 

Which RPM command will output the name of the package which supplied the file /etc/exports? 

A. rpm -F /etc/exports 

B. rpm -qf /etc/exports 

C. rpm -Kl /etc/exports 

D. rpm -qp /etc/exports 

E. rpm -qi /etc/exports 

Answer:

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

Q7. - (Topic 3) 

Which of the following statements is correct regarding the command foo 1> bar? 

A. The stdout from the command foo is appended to the file bar. 

B. The stdout from the command foo overwrites the file bar. 

C. The command foo receives its stdin from the file bar. 

D. The command foo receives its stdin from the stdout of the command bar. 

E. The stderr from the command foo is saved to the file bar. 

Answer:

Q8. - (Topic 4) 

In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.) 

A. cat /proc/self/mounts 

B. free 

C. mount 

D. lsmounts 

E. cat /proc/filesystems 

Answer: A,C 

Q9. - (Topic 3) 

In compliance with the FHS, in which of the directories are man pages found? 

A. /usr/share/man 

B. /opt/man 

C. /usr/doc/ 

D. /var/pkg/man 

E. /var/man 

Answer:

Q10. - (Topic 3) 

From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.) 

A. source /usr/local/bin/runme.sh 

B. . /usr/local/bin/runme.sh 

C. /bin/bash /usr/local/bin/runme.sh 

D. /usr/local/bin/runme.sh 

E. run /usr/local/bin/runme.sh 

Answer: A,B