File and Directory Permissions Flashcards

Learn how to read and understand directory permissions

1
Q

Which command is used for changing the permissions of a file or directory?

A

chmod

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

What does “ugoa” stands for?

A

User Category, groups, others, all

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

What operations can you apply into a permission?

A

Add, subtract, set permissions

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

What does rwx stands for?

A

Read, Write, Execute

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

What are the symbols that denote file type in permissions?

A
  • -> Regular file
    d -> Directory
    l -> Symolic link
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the base 10 value for read permission?

A

4

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

What is the base 10 value for write permission?

A

2

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

What is the base 10 value for executable permission?

A

1

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

What is the base 10 representation of this permission “-rwx——”

A

700

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

What is the base 10 representation of this permission “dr–r–r–”

A

444

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

is 0700 a valid permission?

A

Yes

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

What is the string representation of 177 permission in a symbolic link?

A

l–xrwxrwx

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

What is the default permission when creating a directory?

A

777

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

What is the default permission when creating a file?

A

666

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

Name some common umask configurations?

A

002, 022, 077, 007

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