linux7 Flashcards

1
Q

id command

A

lets you know if your the root user or not which always 0

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

to create a user

A

useradd(name)

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

how to shutdown from the new user acct

A

sudo /sbin/shutdown -r 15

15 stands for 15 minutes

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

visudo

A

this command gets you into sudoers file so you can edit

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

end key

A

curser goes to the end of the paragraph

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

O command in the sudo user options

A

insert command

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

ALL

A

meaning you get all permissions

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

To get out of insert press what

A

escape button

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

what do you press to get out of sudo edit/insert

A

colane then type the command wq

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

sudo shutdown -c

A

exit out of shutdown from the user

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

sudo useradd -D

A

shows us the setting of that new user

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

what command lets you manage user environment settings?

A

etc/login.defs file

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

what does ls -a/etc/skel do

A

look at what files is being copied when a new directory is being made

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

how to view the contents of the new user

A

cat /etc/passwd

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