CH18 Flashcards
The /tmp directory is a temporary directory designed as a location where any user can create a temporary file?
True
False
True
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.
…prevents others from removing files they don’t own from a common directory.
Which of the following commands will set the “sticky bit” on /shared?
chmod 2777 /shared
chmod 1777 /shared
chmod 6777 /shared
chmod 4777 /shared
chmod 1777/shared
Which of the following commands will set setgid on /shared?
chmod 2777/shared
chmod 1777/shared
chmod 4777/shared
None of the Above
chmod 2777/shared
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
…will set the group owner of all files created in the directory to the group owner of the directory.
A source and a hard link must be part of the same filesystem?
True
False
True
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
In file link
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
In -s file link
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
ls -d
ls -ld
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
/tmp
/var/tmp