CH15 Flashcards

1
Q

Which command will display the UID, GID and groups your current user belongs to?

whoami
Who
id
About

A

id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following commands will display the groups that the user bob belongs to?

group bob
id bob
groups -a
all bob

A

id bob

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following commands will display how long the system has been running since the last boot? (Choose Two)

who
id
uptime
w

A

uptime

w

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which command would allow a user to execute commands as root?

whoami
about
sudo
who
grep
A

sudo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

To display the groups a user belongs to, use this command?

all
id
grep
group
whoami
A

id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A value of 0 in the “minimum” password aging field means the user cannot change their password?

True
False

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The “Epoch” began on January 1, 1970?

True
False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The first line of this command displays how long the system has been running since being rebooted?

su
getent
w
id
who
A

w

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The /etc/shadow file contains encrypted passwords?

True
False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly