permissions chmod Flashcards

1
Q

The the types of users you can permissions for are

A

root, group, everyone

https://www.youtube.com/watch?v=wXVauecQPI0

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

To set full permissions to all every user type for a file, type

A

sudo chmod 777 file.html

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

the number associated with every permission is

A
execute = 1
write = 2
read = 4
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

chmod: the basics I need to memorize are

A

root, group, everyone

execute = 1
write = 2
read = 4

sudo chmod 777 file.html

each number represents the permissions you want to set for root, group, everyone respectively.

The sum of all the permissions is the permissions you will set.

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

when you type ls -l and see -rwxrwxrwx, the first dash

A

means its a file. If it was a directory, the dash would be a d
https://www.youtube.com/watch?v=MFQpdELKTLc

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

to make the current user the owner of a file, type

A

sudo chown -R $USER file.html

note: $USER is a variable for my user

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