Linus Batch Flashcards

1
Q

How do you create a user?

A

$ useradd <username></username>

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

User password syntax

A

$ passwd <username></username>

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

Create new group syntax

A

$ groupadd <groupname></groupname>

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

Switch user group syntax

A

$ newgrp <groupname></groupname>

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

Change files group owner syntax

A

$ chown <filename> <username></username></filename>

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

View user group syntax

A

$ groups user

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

Assign user to group syntax

A

$ usermod -a- g <groupname></groupname>

<username>/ $ gpassword -a
<username> <groupname>
</groupname></username></username>

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