102-400 Premium Bundle

102-400 Premium Bundle

LPI Level 1 Exam 102, Junior Level Linux Certification, Part 2 of 2. Certification Exam

4.5 
(35070 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
September 29, 2024Last update

LPI 102-400 Free Practice Questions

Q1. - (Topic 5) 

Which of the following details is NOT provided in any output from the netstat utility? 

A. broadcast services 

B. interface statistics 

C. masquerading connections 

D. network connections 

E. routing tables 

Answer:

Q2. - (Topic 1) 

What output will the command seq 10 produce? 

A. A continuous stream of numbers increasing in increments of 10 until stopped. 

B. The numbers 1 through 10 with one number per line. 

C. The numbers 0 through 9 with one number per line. 

D. The number 10 to standard output. 

Answer:

Topic 2, User Interfaces and Desktops 

Q3. - (Topic 5) 

Which of the following statements is valid in the file /etc/nsswitch.conf? 

A. multi on 

B. 192.168.168.4 dns-server 

C. hosts: files dns 

D. include /etc/nsswitch.d/ 

Answer:

Q4. CORRECT TEXT - (Topic 5) 

Which command is used to set the hostname of the local system? (Specify ONLY the command without any path or parameters.) 

Answer: hostname 

Q5. CORRECT TEXT - (Topic 1) 

By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.) 

Answer: /etc/skel 

Q6. CORRECT TEXT - (Topic 4) 

After adding a new email alias to the configuration, which command must be run in order to ensure the MTA knows about it? (Specify the command without any path but including all required parameters.) 

Answer: newaliases, sendmail -bi 

Q7. - (Topic 1) 

When the command echo $ outputs 1, which of the following statements is true? 

A. It is the process ID of the echo command. 

B. It is the process ID of the current shell. 

C. It is the exit value of the command executed immediately before echo. 

D. It is the exit value of the echo command. 

Answer:

Q8. - (Topic 3) 

Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)? 

A. export LANGUAGE="pt" 

B. export MESSAGE="pt" 

C. export UI_MESSAGES="pt" 

D. export LC_MESSAGES="pt" 

E. export ALL_MESSAGES="pt" 

Answer:

Q9. - (Topic 3) 

Which of the following files assigns a user to its primary group? 

A. /etc/pgroup 

B. /etc/shadow 

C. /etc/group 

D. /etc/passwd 

E. /etc/gshadow 

Answer:

Topic 4, Essential System Services 

Q10. - (Topic 3) 

To prevent a specific user from scheduling tasks with at, what should the administrator do? 

A. Add the specific user to /etc/at.allow file. 

B. Add the specific user to [deny] section in the /etc/atd.conf file. 

C. Add the specific user to /etc/at.deny file. 

D. Add the specific user to nojobs group. 

E. Run the following: atd --deny [user]. 

Answer:

Q11. CORRECT TEXT - (Topic 6) 

Which file contains a set of services and hosts that will be allowed to connect to the server by going through a TCP Wrapper program such as tcpd? (Specify the full name of the file, including path.)https://lh3.googleusercontent.com/-5cd-clmKnbk/AAAAAAAAAAI/AAAAAAAAADM/-SXesH19Ido/s46-c-k-no/photo.jpg 

Answer: /etc/hosts.allow 

Q12. - (Topic 3) 

Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers) 

A. Year 

B. Minute 

C. Username 

D. Command 

Answer: B,D 

Q13. CORRECT TEXT - (Topic 5) 

Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics. (Specify ONLY the command without any path or parameters.) 

Answer: netstat, /bin/netstat, ss, /usr/bin/ss 

Q14. CORRECT TEXT - (Topic 4) 

Please specify the top directory containing the configuration files for the CUPS printing system. (Specify the full path to the directory.) 

Answer: /etc/cups, /etc/cups/ 

Q15. - (Topic 1) 

What output will the following command produce? 

seq 1 5 20 

A. 1 6 1 1 1 6 

B. 1 5 10 15 

C. 1 2 3 4 

D. 2 3 4 5 

E. 5 10 15 20 

Answer:

Q16. CORRECT TEXT - (Topic 5) 

Which parameter must be passed to ifconfig to activate a previously inactive network interface? (Specify the parameter only without any command, path or additional options) 

Answer: up 

Q17. - (Topic 4) 

Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.) 

A. Postfix 

B. Procmail 

C. Sendmail 

D. Exim 

E. SMTPd 

Answer: A,C,D 

START 102-400 EXAM