XK0-004 · Question #455
A user cannot access the application server from a laptop. The user does not know the name of the application's process but does know the port number. Which of the following commands would BEST help…
The correct answer is A. last. The last command reads system login records to display user session history, which can help investigate who has accessed a server.
Question
A user cannot access the application server from a laptop. The user does not know the name of the application's process but does know the port number. Which of the following commands would BEST help the user to investigate the issue whe
Options
- Alast
- Bnetatat
- Cnslookup
- Droute
- Elsblk
How the community answered
(43 responses)- A93% (40)
- B2% (1)
- E5% (2)
Why each option
The last command reads system login records to display user session history, which can help investigate who has accessed a server.
The last command reads /var/log/wtmp to display a chronological list of user logins, logouts, and system reboots, providing administrators with a history of user access to the server. When a user reports being unable to access an application server, reviewing login history with last can reveal whether any sessions have been established and help identify access patterns or anomalies.
netstat (misspelled as 'netatat') shows current active network connections and listening ports but does not show historical user login sessions or access records.
nslookup is a DNS query tool used to resolve hostnames to IP addresses, which does not help investigate application server access or port-level issues.
route displays or modifies the kernel IP routing table, which addresses routing path issues but does not provide information about user sessions or port activity.
lsblk lists block storage devices and their partitions, which is completely unrelated to network access or application server connectivity.
Concept tested: Using last command to investigate user login history
Source: https://man7.org/linux/man-pages/man1/last.1.html
Topics
Community Discussion
No community discussion yet for this question.