Chapter 4 Managing Files Flashcards
A few characters have special meaning and should never be used in file names. What are they? pg 179
*,? / "
What is a wild card? pg 180
A wildcard is a symbol or set of symbols that stand in for other characters.
What are 3 common classes of wildcards in Linux?
- Star, ? Question Mark, Square or bracketed
What does the cp command do?
copies a file
What are the 3 operating modes of cpio? pg 191
Copy-Out, Copy-In,Copy Pass
What does the mkdir command do? ?pg 198
Creates a Directory
What does the rmdir command do? pg 198
Destroys the directory
which command will delete an entire directory tree? pg 198
-p or –parents Example(rmdir -p one/two/three)
What is the sticky bit? pg 205
its used to protect files from being deleted by those who don’t own the files.
what are the prerequisites of using Linux’s disk quota system?
Linux’s disk quota system requires support in the Linux kernel for the file system on which quotas are to be used. you must also run the quotation command typically from a start up script to enable this feature.
Describe linux file ownership system?
Every file has an owner and a group, identified by a number. File permissions can be assigned independently to the files owner,the files’s group, and to all other users.
True or False pg 190 True
the xz compression tool has gained so much popularity, the linux kernel is now compressed with it.
Linux-native file systems maintain three time stamps for every file: what are the three?
Last File Modification time,Last inode change time,Last access time
/root
root is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system. It is also referred to as the root account, root user and the superuser.
summarize Linux’s directory manipulation commands?
the mkdir command creates a new directory. and rmdir deletes a directory. You can also use many file manipulation commands such as mv and rm
if you want to search a directory and perhaps some limited number of sub directories what can you use?
-maxdepth
on Page 221 there are 5 directories that should not be on their own partitions. Name them?
/bin /dev /etc /lib /sbin
A superuser can turn quotas on at anytime by using what command? pg 214
quotaon
A superuser can turn quotas off at anytime by using what command? pg 214
quotaoff
What is symbolic mode?
its a set of codes related to the string representation of the permissions.
Tail Merging pg 213
is a feature of some computer file systems which allows large blocks or allocation units to be used while making efficient use of “slack” space at the end of large files, space which would otherwise be lost for other use to internal fragmentation.
Set User ID (SUID)
is a special type of file permissions given to a file. Normally in Linux/Unix when a program runs, it inherits access permissions from the logged in user. SUID is defined as giving temporary permissions to a user to run a program/file with the permissions of the file owner rather that the user who runs it. In simple words users will get file owner’s permissions as well as owner UID and GID when executing a file/program/command.
Set Group ID (SGID)
is a special type of file permissions given to a file/folder. Normally in Linux/Unix when a program runs, it inherits access permissions from the logged in user. SGID is defined as giving temporary permissions to a user to run a program/file with the permissions of the file group permissions to become member of that group to execute the file. In simple words users will get file Group’s permissions when executing a Folder/file/program/command.
What does FHS stand for in Linux?
File system Hierarchy Standard(FHS)