Term
Why was the Filesystem Hierarchy Standard (FHS) created? |
|
Definition
To simplify the task of finding specific files. |
|
|
Term
What command is used to create a directory? |
|
Definition
mkdir (make directory)command |
|
|
Term
Which directory contains binary commands for use by all users? |
|
Definition
|
|
Term
Which directory contains the Linux kernel and files used by the boot loader? |
|
Definition
|
|
Term
Which directory contains device files? |
|
Definition
|
|
Term
Which directory contains system specific configuration files? |
|
Definition
|
|
Term
Which directory is the default location for user home directories? |
|
Definition
|
|
Term
Which directory contains subdirectories used for accessing(mounting)filesystems on removable media devices such as floppy disks, DVDs, and USB flash drives? |
|
Definition
|
|
Term
Which directory is an empty directory used for temporarily accessing filesystems on removable media devices? |
|
Definition
|
|
Term
Which directory is the root user's home directory? |
|
Definition
|
|
Term
Which directory contains most system commands and utilities? |
|
Definition
|
|
Term
Which directory contains log files and spools? |
|
Definition
|
|
Term
What command is used to move directories and files? |
|
Definition
|
|
Term
If the target is the name of a directory, what does the mv command do? |
|
Definition
The mv command moves those files to that directory. |
|
|
Term
If the target is a filename of an existing file in a certain directory and there is one source file, what does the mv command do? |
|
Definition
The mv command overwrites the target with the source. |
|
|
Term
If the target is a filename of a nonexistent file in a certain directory, what does the mv command do? |
|
Definition
The mv command creates a new file with that filename in the target directory and moves the source file to that file. |
|
|
Term
How can the mv command be used to rename directories? |
|
Definition
Simply moving a file to the same directory, but with a different filename. |
|
|
Term
What command is used to copy files? |
|
Definition
|
|
Term
How do the mv and cp commands differ when applied to directories? |
|
Definition
The mv command renames a directory, whereas the cp command creates a whole new copy of the directory and its contents. |
|
|
Term
What does the term recursive mean as it applies to the cp command? |
|
Definition
Involves files and subdirectories. |
|
|
Term
What option must you use to copy a directory full of files and/or subdirectories? |
|
Definition
|
|
Term
How do the mv and cp commands behave when the target file already exists? |
|
Definition
Warns the user that the target file will be overwritten and then asks whether to continue. |
|
|
Term
What command is used to display aliases present in your current shell? |
|
Definition
|
|
Term
What command will override interactive mode and force overwriting without checking? |
|
Definition
|
|
Term
What command is used to remove files? |
|
Definition
|
|
Term
By default, does the command used to remove files run in interactive mode or forced? |
|
Definition
|
|
Term
What command is used to remove a directory? |
|
Definition
rmdir(remove directory)command |
|
|
Term
To remove a directory and the files inside, you must use which command? |
|
Definition
|
|
Term
What is the fastest method to search for files in the Linux directory tree? |
|
Definition
|
|
Term
What is the database used for the locate command, when is it updated, and how can you manually update it? |
|
Definition
-Premade database -Each day automatically -Running the update db command |
|
|
Term
Which command is slower but more versatile than locate and finds files by searching recursively? |
|
Definition
|
|
Term
What is the syntax of the command from the previous question? |
|
Definition
|
|
Term
How do you ensure that any wildcard metacharacters will be protected from shell interpretation and will only be interpreted by the find command? |
|
Definition
They are enclosed within the quote characters. |
|
|
Term
What command is used to search for executable files? |
|
Definition
|
|
Term
Where does the which command search for files? |
|
Definition
The which command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell. |
|
|
Term
What command will display the directories identified by the PATH variable? |
|
Definition
|
|
Term
What happens if the file being searched does not exist in the PATH variable directories? |
|
Definition
The which command lets you know in which directories it was not found. |
|
|
Term
What is a simple way to explain what a symbolic link is? |
|
Definition
One file is a pointer, or shortcut,to another file. |
|
|
Term
What are the three main sections of the filesystem? |
|
Definition
-The superblock -The inode table -Data blocks |
|
|
Term
|
Definition
Is the section that contains information about the filesystem in general, such as the number of inodes and data blocks. |
|
|
Term
What does the term inode stand for? |
|
Definition
Describes one file or directory on the filesystem and contains a unique inode number for identification. |
|
|
Term
What does and inode do? What does it show? |
|
Definition
Inode stores information such as the file size, data block locations, last date modified, permissions, and ownership. |
|
|
Term
What happens to inode and file data when a file is deleted? |
|
Definition
Only its node (which serves as a pointer to the actual data)is deleted. |
|
|
Term
What is a hard linked file? |
|
Definition
They are direct copies of one another, as they share the same inode and inode number. |
|
|
Term
What command is used to create a hard link? |
|
Definition
|
|
Term
What effect does deleting a herd linked file have on the other hard linked files? |
|
Definition
Does not delete all other hard-linked files. |
|
|
Term
What command is used to view the inode number of hard-linked files to verify that they are identical? |
|
Definition
|
|
Term
Are directory files normally hard-linked? |
|
Definition
They are not normally hard-linked. Only directories that have files regularly added and need to maintain identical files, contents are typically hard-linked. |
|
|
Term
How do symbolic links differ from hard links? |
|
Definition
They do not share the same inode and inode number with their target file, one is merely a pointer to the other;thus files have different sizes. |
|
|
Term
What is contained in the data blocks of a symbolic link? |
|
Definition
Contains only the pathname to the target file. |
|
|
Term
What are two synonyms for symbolic links? |
|
Definition
|
|
Term
What function do symbolic links serve if the target file is deleted? |
|
Definition
|
|
Term
What command is used to create a symbolic link? |
|
Definition
|
|
Term
Must a symbolic link reside on the same filesystem as their target? |
|
Definition
|
|
Term
When a user creates a file or directory who becomes the owner and group owner of the file? |
|
Definition
The user's name and primary group become the owner and group owner of the file. |
|
|
Term
Which two users on a Linux system can modify permissions on a file or directory or change its ownership? |
|
Definition
The owner of the file or directory and the root user. |
|
|
Term
What command is used to view your current user name? |
|
Definition
|
|
Term
What command is used to view group memberships and primary group? |
|
Definition
|
|
Term
What command is used to create an empty file? |
|
Definition
|
|
Term
What command is used to change the ownership of a file or directory? |
|
Definition
chown (change owner)command |
|
|
Term
What command is used to change the group owner of a file or directory? |
|
Definition
chgrp(change group)command |
|
|
Term
How can you override who is allowed to change ownership and permissions? |
|
Definition
You can override who is allowed to change ownership and permissions using a system setting. |
|
|
Term
What is the mode of a file? |
|
Definition
The section of the inode that stores permissions. |
|
|
Term
What are three sections of the mode? |
|
Definition
-Users(owner)permissions -Groups(group owner)permissions -Other(every one else)permissions |
|
|
Term
What are the three regular permissions? |
|
Definition
|
|
Term
What permissions doea the root user have to files and directories? |
|
Definition
The root user has all permissions to every file and directory. |
|
|
Term
If a permission is unavailable, what replaces its position in the mode? |
|
Definition
A dash(the hyphen character on your keyboard,-)replaces its position in the mode. |
|
|
Term
How are file and directory permissions treated separately by the Linux system? |
|
Definition
Desktop directory gives the user or owner of the directory(the root user)read,write,and execute. Members of the group(the root group) do not receive any permissions to th directory. Other(everyone on the system)does not receive permissions to this directory. |
|
|
Term
What command is used to change permissions on a file or directory? |
|
Definition
chmod(change mode)command |
|
|
Term
Should you place spaces between the criteria used in the chmod command? |
|
Definition
No -All criteria makes up the first argument only. |
|
|
Term
When using the chmod command, what character is used to refer to all categories(user,group,other)? |
|
Definition
|
|
Term
When using the chmod command, if there is no character specifying the category of user to affect, what happens? |
|
Definition
|
|
Term
What are the numeric criteria used with the chmod command? |
|
Definition
-read = 2^2=4 -write = 2^1=2 -execute = 2^0=1 |
|
|
Term
What permissions are given to new files by the system? |
|
Definition
rw - rw - rw 4+2=6 4+2=6 4+2=6 |
|
|
Term
What permissions are given to new directories by the system? |
|
Definition
rwxrwxrwx 4+2+1=7 4+2+1=7 4+2+1=7 |
|
|
Term
What special variable takes away permissions on new files and directories? When is it applied? |
|
Definition
The umask(user mask)takes away permissions on new files and directories immediately after they are created. |
|
|
Term
Is the umask variable ever used on existing files? |
|
Definition
|
|
Term
Can you change the umask? |
|
Definition
Yes because it is a variable stored in memory. |
|
|
Term
What are three special permissions that you can use on files and directories? |
|
Definition
-SUID(set user ID) -SGID(set group ID) -Sticky Bit |
|
|
Term
What special functions does the SUID have on directories? |
|
Definition
|
|
Term
What special functions does the SUID have on files? |
|
Definition
The file is executed and the person who executed the file tempoarily becomes the owner of the file while it is executing. |
|
|
Term
What is the only type of file to which the SUID can be applied? |
|
Definition
-executed file (binary compiled programs) |
|
|
Term
Can you apply the SUID to a shell script? |
|
Definition
-No -Shell scripts are easy to edit and, thus, pose a security hazard to the system. |
|
|
Term
What special functions does the SGID have on directories? |
|
Definition
If a user creates a file in the directory that has the SGID permissions set, that user's name becomes the owner of the file and the directory group becomes the group owner of the file. |
|
|
Term
What does the stick bit do? |
|
Definition
Was used on files in the past to lock them in memory, however,today the sticky bit performs a useful function only on directories. |
|
|
Term
What permission do all special permissions require in addition? |
|
Definition
|
|
Term
How do special permissions display? |
|
Definition
rwx rwx rwx SUID SGID Sticky Bit rws rws rwt |
|
|
Term
What happens if you set a special permission and the file or directory does not have the execute permission? |
|
Definition
special permissions become ineffective and are capitalized. |
|
|