Quiz: Chapter 04 Linux Filesystem Management

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What does the mv command do? (Choose all that apply.)

a. It renames a file. b. It renames a directory. c. It moves a directory to another location on the filesystem. d. It moves a file to another location on the filesystem.

What must a Fedora Linux user do to run cp or mv interactively and be asked whether to overwrite an existing file?

a. Just run cp or mv because they run in interactive mode by default.

Hard links need to reside on the same filesystem, whereas symbolic links need not be on the same filesystem as their target.

a. True

After typing the ls -F command, you see the following line in the output:-rw-r-xr-- 1 user1 root 0 Apr 29 15:40 file1How do you interpret the mode of file1?

a. User1 has read and write, members of the root group have read and execute, and all others have read permissions to the file.

A file has the following permissions: r----x-w-. The command chmod 143 file1 would have the same effect as the command _____. (Choose all that apply.)

a. chmod u+x-r,g+r-x,o+x file1 d. chmod u=x,g=r,o=wx file1

Which of the following commands will change the user ownership and group ownership of file1 to user1 and root, respectively?

a. chown user1:root file1

The command chmod 317 file1 would produce which of the following lines in the ls command?

b. --wx--xrwx 1 user1 root 0 Apr 29 15:40 file1

A symbolic link is depicted by an @ symbol appearing at the beginning of the filename when viewed using the ls -l command.

b. False

Only the root user can modify a file that has the immutable attribute set.

b. False

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 means that it is on a directory.

b. False

When applied to a directory, the SGID special permission _____.

b. causes all new files created in the directory to have the same group membership as the directory, and not the entity that created them

What does the /var directory contain?

b. log files and spool directories

When you change the data in a file that is hard-linked to three others, _____.

b. 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 inode

After typing the command umask 731, the permissions on all subsequently created files and directories will be affected. In this case, what will be the permissions on all new files?

c. ---r--rw-

What was created to define a standard directory structure and common file location for UNIX and Linux systems?

c. FHS

Given the following output from the ls command, how many other files are hard linked with file3?

c. three

You noticed a file in your home directory that has a + symbol appended to the mode. What does this indicate?

d. Additional entries exist within the ACL of the file that can be viewed using the getfacl command.

The root user utilizes the chown command to give ownership of a file to another user. What must the root user do to regain ownership of the file?

d. Run chown and list the root user as the new owner.

The default permissions given by the system prior to analyzing the umask are _____ for newly created directories and _____ for newly created files.

d. rwxrwxrwx and rw-rw-rw-

The which command _____.

d. searches for a file only in directories that are in the PATH variable


Set pelajaran terkait

Lessons 6-8 & 6-9 Angles, Lines, Transversals & Interior/Exterior Angles of Triangles

View Set

Chapter 18 Iggy Practice Questions

View Set

ANTH 1150 Pearson Questions Chapter 9

View Set

LatinoAm 213-003: Final Exam Review

View Set