File Permissions & Ownership Flashcards

1
Q

What does the symbol ‘r’ represent?

A

Read permission

‘r’ allows the user to read the contents of a file.

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

What does the symbol ‘w’ represent?

A

Write permission

‘w’ allows the user to modify or delete the contents of a file.

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

What does the symbol ‘x’ represent?

A

Execute permission

‘x’ allows the user to run the file as a program.

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

What command is used to show file permissions?

A

ls -l

This command lists files in long format, displaying permissions and other details.

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

What does ‘chmod 755 <file>' do?</file>

A

Change permissions to rwxr-xr-x

This command sets read, write, and execute permissions for the user, and read and execute permissions for the group and others.

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

What does ‘chmod u+x <file>' accomplish?</file>

A

Add execute permission to the user

This command modifies the file permissions to give the user execute rights.

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

What is the purpose of the command ‘chown user:group <file>'?</file>

A

Change file owner and group

This command assigns a new owner and group to the specified file.

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

What does the command ‘umask’ display?

A

Show default permissions

This command shows the default permission settings that will be applied to newly created files.

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