ITN170--Module 1-7.w | Questions and Answers
1. Which of the following sub-directories are part of the root directory? [Choose all that apply.]: boot
usr
home
var tmp
2. Which command will allow you to find out the total space taken by each of the directories in a Linux system?:
du -h --max-depth=1
3. Which type of partition moves items from the computer memory to its hard drive?: swap
4. Which of the following command lists all the partitions and their mount points on a hard disk?: mount
5. A symbolic link is also known as a soft link and is depicted by an @ symbol appearing at the beginning of the
filename when viewed using the ls
-l command. True or False?: False
6. What was created to define a standard directory structure and common file location for Linux?: FHS
7. There is no real difference between the "S" and "s" special permissions when displayed using the ls -l
command. One just means it is on a file, and the other that it is on a directory. True or False?: False
8. The default permissions given by the system prior to analyzing the umask are for directories and
for files.: rwxr- wxrwx and rw-rw-rwe.
9. What must a user do to run cp or mv interactively and be asked whether to overwrite an existing file?: Just
type cp or mv as they run in interactive mode by default.
10.The root user utilizes the chgrp command to give ownership of a file to another user. What must the root
user do to regain ownership of the file?: Run chgrp again listing the root user as the new owner
11.After typing the ls -F command, you see the following line in the output:
, ITN170--Module 1-7.w | Questions and Answers
-rw-r-xr-- 1 user1 root 0 Apr 29 15:40 file1: User1 has read and write permission, members of the root group have
read andexecute permissions, and all others have read permissions to the file.
12.After typing the command umask 731, the permissions on all subsequently created files and directories will be
effected. In this case, what will be the permissions on all new files?: ---r--rw-
13.You noticed a file in your home directory that has a + symbol appended to the mode. What does this
indicate?: Additional entries exist within the ACL of the file that can be viewed using the getfacl command.
, ITN170--Module 1-7.w | Questions and Answers
14.When you change the data in a file that is hard-linked to three others,
.: the data in the file you modified as well as the data in all hard-linked files are modified because they
share the same data and all have the same inode and file size
15.The command chmod 317 file1 would produce which of the following lines in the ls command?: --wx--xrwx 1
user1 root 0 Apr 29 15:40 file
16.Which of the following commands will change the user ownership and group ownership of file1 to user1 and
root, respectively?: chown user1:root file1
17.Question WorkspaceCheck My WorkWhat does the /var directory contain?-
: Spools and log files
18.What does the mv command do? (Choose all that apply.): It moves a direc- tory.
It moves a file.
19.A file has the following permissions r----x-w-. The command chmod 143 would have the same effect as
the command . (Choose all that apply.):
chmod u=x,g=r,o=wx file1
20.The which command .: searches for a file only in directo- ries that are in
the PATH variable
21.Hard links need to reside on the same filesystem as the target, whereas symbolic links need not be on the
same filesystem as the target. True or False?: True
22.When applied to a directory, the SGID special permis-
sion .: causes all new files created in the directory to have the same group
membership as the directory and not the entity that created them
1. Which of the following sub-directories are part of the root directory? [Choose all that apply.]: boot
usr
home
var tmp
2. Which command will allow you to find out the total space taken by each of the directories in a Linux system?:
du -h --max-depth=1
3. Which type of partition moves items from the computer memory to its hard drive?: swap
4. Which of the following command lists all the partitions and their mount points on a hard disk?: mount
5. A symbolic link is also known as a soft link and is depicted by an @ symbol appearing at the beginning of the
filename when viewed using the ls
-l command. True or False?: False
6. What was created to define a standard directory structure and common file location for Linux?: FHS
7. There is no real difference between the "S" and "s" special permissions when displayed using the ls -l
command. One just means it is on a file, and the other that it is on a directory. True or False?: False
8. The default permissions given by the system prior to analyzing the umask are for directories and
for files.: rwxr- wxrwx and rw-rw-rwe.
9. What must a user do to run cp or mv interactively and be asked whether to overwrite an existing file?: Just
type cp or mv as they run in interactive mode by default.
10.The root user utilizes the chgrp command to give ownership of a file to another user. What must the root
user do to regain ownership of the file?: Run chgrp again listing the root user as the new owner
11.After typing the ls -F command, you see the following line in the output:
, ITN170--Module 1-7.w | Questions and Answers
-rw-r-xr-- 1 user1 root 0 Apr 29 15:40 file1: User1 has read and write permission, members of the root group have
read andexecute permissions, and all others have read permissions to the file.
12.After typing the command umask 731, the permissions on all subsequently created files and directories will be
effected. In this case, what will be the permissions on all new files?: ---r--rw-
13.You noticed a file in your home directory that has a + symbol appended to the mode. What does this
indicate?: Additional entries exist within the ACL of the file that can be viewed using the getfacl command.
, ITN170--Module 1-7.w | Questions and Answers
14.When you change the data in a file that is hard-linked to three others,
.: the data in the file you modified as well as the data in all hard-linked files are modified because they
share the same data and all have the same inode and file size
15.The command chmod 317 file1 would produce which of the following lines in the ls command?: --wx--xrwx 1
user1 root 0 Apr 29 15:40 file
16.Which of the following commands will change the user ownership and group ownership of file1 to user1 and
root, respectively?: chown user1:root file1
17.Question WorkspaceCheck My WorkWhat does the /var directory contain?-
: Spools and log files
18.What does the mv command do? (Choose all that apply.): It moves a direc- tory.
It moves a file.
19.A file has the following permissions r----x-w-. The command chmod 143 would have the same effect as
the command . (Choose all that apply.):
chmod u=x,g=r,o=wx file1
20.The which command .: searches for a file only in directo- ries that are in
the PATH variable
21.Hard links need to reside on the same filesystem as the target, whereas symbolic links need not be on the
same filesystem as the target. True or False?: True
22.When applied to a directory, the SGID special permis-
sion .: causes all new files created in the directory to have the same group
membership as the directory and not the entity that created them