CH18 Flashcards

1
Q

The /tmp directory is a temporary directory designed as a location where any user can create a temporary file?

True
False

A

True

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

The “sticky bit” permission?

…sets the group ownership of any new file created in a directory.
…prevents others from removing files they don’t own from a common directory.
…changes the group ownership of existing files in a directory.
…prevents others from overwriting files they don’t own in common directories.

A

…prevents others from removing files they don’t own from a common directory.

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

Which of the following commands will set the “sticky bit” on /shared?

chmod 2777 /shared
chmod 1777 /shared
chmod 6777 /shared
chmod 4777 /shared

A

chmod 1777/shared

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

Which of the following commands will set setgid on /shared?

chmod 2777/shared
chmod 1777/shared
chmod 4777/shared
None of the Above

A

chmod 2777/shared

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

Setting setgid on a directory?

…will allow scripts in the directory to be executed as the group owner of the directory.
…is not allowed by the system
…does nothing
…will set the group owner of all files created in the directory to the group owner of the directory

A

…will set the group owner of all files created in the directory to the group owner of the directory.

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

A source and a hard link must be part of the same filesystem?

True
False

A

True

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

Which of the following commands would create a hard link, link to file?

In file link
In link file
In -s file link
In -s link file

A

In file link

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

Which of the following commands would create a symbolic link, link to file?

In file link
In -s link file
In link file
In -s file link

A

In -s file link

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

Which of the following ls commands, when executed, will only show information about the directory itself? (Choose Two)

ls -h
ls -d
ls -ld
ls -a

A

ls -d

ls -ld

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

Which of the following directories are designed as locations where any user can create a temporary file? (Choose Two)

/sbin
/lost+found
/tmp
/home
/var/tmp
A

/tmp

/var/tmp

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