CH15 Flashcards
Which command will display the UID, GID and groups your current user belongs to?
whoami
Who
id
About
id
Which of the following commands will display the groups that the user bob belongs to?
group bob
id bob
groups -a
all bob
id bob
In distributions that do not allow the root user to login directly or via the su command, the installation process automatically configures one user account to be able to use the sudo command to execute commands as if they were executed by the root user?
True
False
True
Which of the following commands will display how long the system has been running since the last boot? (Choose Two)
who
id
uptime
w
uptime
w
Which command would allow a user to execute commands as root?
whoami about sudo who grep
sudo
To display the groups a user belongs to, use this command?
all id grep group whoami
id
A value of 0 in the “minimum” password aging field means the user cannot change their password?
True
False
False
The “Epoch” began on January 1, 1970?
True
False
True
The first line of this command displays how long the system has been running since being rebooted?
su getent w id who
w
The /etc/shadow file contains encrypted passwords?
True
False
True