LPI 010-160 Exam Practice Questions (P. 2)
- Full Access (80 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
Which of the following commands can be used to resolve a DNS name to an IP address?
- Adnsname
- Bdns
- Cquery
- DhostMost Voted
- Eiplookup
Correct Answer:
D
D

The 'host' command in Linux is used for DNS lookups to find the IP address associated with a domain name. This functionality is crucial for network troubleshooting and ensuring that domain name resolutions are functioning correctly. Essentially, by using `host [domain_name]` in the terminal, the associated IP address will be returned, making it the right tool for DNS inquiries. Other commands such as 'nslookup' and 'dig' also serve similar purposes, but 'host' is the specified correct answer in this context.
send
light_mode
delete
Question #7
Which of the following outputs comes from the command free?
A.

B.

C.

D.

E.

A.

B.

C.

D.

E.

send
light_mode
delete
Question #8
What is true about the dmesg command? (Choose two.)
- AIt traces the execution of a command and shows each step the program carries out.
- BIt sends messages to the command lines of all current user sessions.
- CIt displays the content of the Linux kernel's ring buffer.Most Voted
- DIt immediately outputs all new messages written to the system journal.
- EIt might not display older information because it was overwritten by newer information.Most Voted
Correct Answer:
CE
CE

The dmesg command is crucial for examining or controlling the kernel ring buffer. It primarily displays all messages from this buffer, making it a valuable tool for understanding immediate kernel messages. Importantly, the kernel ring buffer has limited space and operates in a circular manner, meaning older messages may be overwritten by newer ones as the buffer fills. This feature highlights why sometimes not all historical messages can be retrieved using dmesg, especially if the system has been running for a considerable time or is particularly log-intensive.
send
light_mode
delete
Question #9
Which of the following outputs could stem from the command last?
- A1 ls 2 cat text.txt 3 logout
- BPassword for user last changed at Sat Mar 31 16:38:57 EST 2018
- CLast login: Fri Mar 23 10:56:39 2018 from server.example.com
- DEXT4-fs (dm-7): mounted filesystem with ordered data mode. Opts: (null)
- Eroot tty2 Wed May 17 21:11 - 21:11 (00:00)Most Voted
Correct Answer:
E
E

The 'last' command in Linux displays a list of all users who have last logged into the system, showing a detailed record including terminal, login time, logout time, and the duration of the session. This corresponds with the format described in option E, where the output clearly lists user 'root', the terminal used (tty2), and timing details of the session, making it a textbook case of what you should expect from 'last' command execution. Always remember, the output of this command is crucial for system administrations to track user sessions for security and monitoring purposes.
send
light_mode
delete
Question #10
What is the UID of the user root?
- A1
- B-1
- C255
- D65536
- E0Most Voted
Correct Answer:
E
E

In Linux, the root user is fundamentally identified by the UID 0. This UID is predefined for the superuser, granting unlimited privileges to perform any administrative tasks required. Knowing this, UID 0 is important when managing permissions and securing Linux systems.
send
light_mode
delete
All Pages