Linux Chapter 6
When changing permissions, what command option will affect subdirectories and files under them?
-R
When using the setfacl command, what option will delete an ACL?
-b
What option with the ls command will display permissions and ownership?
-l
When using the setfacl command, what option will add an ACL?
-m
What character at the beginning of a file or directory will make it hidden?
. (dot)
What is the maximum filename length in Linux?
255
What are the permissions for the following set? rw-r--r--
644
What are the permissions for the following set? rwxrw-r- -
764
Using a(n) ___________ will allow a finer grain control over a filesystem. Due to performance issues, it is recommended to use them sparingly.
ACL
What does ACL mean?
Access Control List
What is the function of the /usr directory?
Contains most of the installed software
What is the function of the /boot directory?
Contains the Linux kernel
What are folders called in Linux?
Directories
The Linux ________________ sets a standard directory structure and promotes interoperability.
FHS
All commands support the use of ACLs. T/ F
False
Filename extensions are not optional and required for all files. T /F
False
Linux filenames are not case sensitive. T/ F
False
What are the two types of links in Linux?
Hard Soft (Symbolic)
The Linux filesystem has a ______________ structure and typically takes the shape of a pyramid.
Hierarchial
What is the function of the /var directory?
Houses logging, spooling, and serving files
Given the following file static permissions, r--rw--r--, can the owner edit the file if he/she is a member of the group?
No / False
When using the ln command, what option will create a hard link?
No option is required
What is the function of the /dev directory?
Represents the Linux hardware devices
What is wrong with the following "ln" link command? ln -s /home/stu25/fstab.linkname /etc/fstab
Reverse the /home/stu25/fstab.linkname and /etc/fstab
What is the name of the Kernel security module for access control security policies?
SELinux
What is the function of the /etc directory?
Similar to Windows registry
What special permission allows users full control over files they own, but read only access to files owned by other users in the same directory?
Sticky
What are the two modes to setting filesystem permissions?
Symbolic Octal
What is the function of the /home directory?
The most important directory in Linux
Spaces are supported in Linux filenames, but are not recommended. T / F
True
When setting file and folder permissions, a user can use +, - and = to assign, set, or remove permissions. T / F
True
What is the function of the /tmp directory?
Used for temporary files and folders
What are the three traditional names for the filesystem permission categories in Linux?
User Other Group
What is the function of the /proc directory?
Virtual filesystem
What filename path always starts with the root of the filesystem?
absolute
What Linux command will change permissions?
chmod
What command(s) changes and/or group ownership of files and directories?
chown chgrp
What is the function of the /bin directory?
public executable commands
What are the three filesystem permissions in Linux?
read write execute
What Linux command will remove a filesystem link?
rm
The _______________ of Linux filesystem structure starts at the top.
root
What is the function of the /sbin directory?
root only executable programs
The /etc/shadow file contains all users passwords. Given the below /etc/shadow file permissions, how can users change their passwords? [root@svr25 ~]# ls -l /etc/shadow ----------. 1 root root 1461 Dec 19 10:56 /etc/shadow
sticky
What single character shortcut represents the personal home directory for every user?
~