CyberCertPrepSecurity FundamentalsLinux BasicsEASYFree question
Which command displays the currently logged-in username?
- A.id
- B.user
- C.whoami
- D.logname
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.