Flashcards
Chapter 03 - Review Questions
Cards in this deck (24)
- 1Which command can be used to determine a file type?The file command can be used to determine a file type.
- 2The output generated by the umask command shows the current user mask in four digits. What is the significance of the left-most digit?The left-most digit has no significance in the umask value.
- 3Default permissions are calculated by subtracting the initial permissions from the umask value. True or False?False. Default permissions are calculated by subtracting the umask value from the initial permission values.
- 4The chgrp command may be used to modify both ownership and group membership on a file. True or False?False.
- 5Name the permission classes, types, and modes.Permission classes are user, group, and public; permission types are read, write, and execute; and permission modes are add, revoke, and assign.
- 6The default umask for a regular user in bash shell is 0027. True or False?False. The default umask for bash shell users is 0002.
- 7What digit represents the setuid bit in the chmod command?The digit 4 represents the setuid bit.
- 8What would the command find /var -perm -1000 –type d do?It would search the /var directory for directories with sticky bit set.
- 9What would the command chmod g-s file1 do?It would remove the setgid bit from file1.
- 10Sticky bit is recommended for every system directory. True or False?False.
- 11The setgid bit enables group members to run a command at a higher priority. True or False?False.
- 12The chown command may be used to modify both ownership and group membership on a file. True or False?True.
- 13What is the equivalent symbolic value for permissions 751?The equivalent for octal 751 is rwxr-x--x.
- 14A file must have the .exe extension to be able to run. True or False?False.
- 15/boot is a memory-based file system. True or False?False. /boot is a disk-based file system.
- 16Name the two types of paths.The two types of pathnames are absolute and relative.
- 17What are the two indications in the ll command output that tells us if the file is a symlink?A symlink file line entry in the ll command output begins with the letter l and has an arrow pointing to the source file.
- 18The rmdir command can be used to remove an entire directory structure. True or False?False. The rmdir is used to remove empty directories.
- 19The –A option with the chattr command makes a file immutable. True or False?False. The –i option is used with the chattr command to make a file immutable.
- 20The ll command produces 9 columns in the output by default. True or False?True.
- 21Soft linked directories cannot cross file system boundaries but hard linked directories can. True or False?False. Soft linked directories can and hard linked directories cannot cross file system boundaries.
- 22What permissions would the owner of the file get if the chmod command is executed with 555?The owner will get read and execute permissions.
- 23What would the find / -name core –ok rm {} \; command do?The find command provided will display all files by the name core in the entire directory hierarchy and ask for removal confirmation as it finds them.
- 24Which special permission bit is set on a directory for team sharing?The setgid bit is set for team sharing
Information
- Description
- RHCSA EX200 (03. Working with Files and File Permissions) Flashcards on Chapter 03 - Review Questions, created by Vagner Aragão on 24/01/2019.
- Created by
- Vagner Aragão
- Views
- 0
- Rating