Special Directories and Files Flashcards

1
Q

How do you make a symbolic link?

A

ln -s source newname

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

What does the t permission in the below permission string mean?

-rwxrwxrwt

A

The t means that the file or directory has a sticky bit allocated to it, which only allows the user or group to delete / modify the file or directory.

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

How do you add a sticky bit to a file or directory?

A

chmod +t filename / directoryname

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

How do you remove a sticky bit to a file or directory?

A

chmod -t

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

How do you add a sticky bit to a file or directory by octal notation?

A

1xxx

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

How do you remove a sticky bit to a file or directory by octal notation?

A

0XXX

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