CyberCertPrepSecurity FundamentalsLinux BasicsEASYFree question
Which command displays the currently logged-in username?
- A.A. user
- B.B. logname
- C.C. whoami
- D.D. id
Why C is correct
'whoami' displays the effective username of the current user. 'id' shows the user ID, group ID, and group memberships. 'who' shows all logged-in users. 'logname' shows the login name of the current session.
Know someone studying for Security Fundamentals? Send them this one.