linux ch4

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

12. What does the /var directory contain?

: b. spools and log files

18. Which command do you use to rename files and directories?

b. mv

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

c. FHS

19. What are the three standard Linux permissions?

c. execute, read, write

15. The which command ________________.

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

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

d. 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

20. Given the following output from the ls command, how many files are linked with file1?

: b. two

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

c. It moves a directory. d. It moves a file.

5. What must a user do to run cp or mv interactively and be asked if she wants to overwrite an existing file?

c. Type cp -i or mv -i.

8. 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-

14. 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.)

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

4. The default permissions given by the system prior to analyzing the umask are __________ for directories and ___________ for files.

rwxrwxrwx and rw-rw-rw-

17. When applied to a directory, the SGID special permission ________________.

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

3. 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

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

7. 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 file1 What does this mean?

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

11. 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

10. 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

6. 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?

c. Have the new owner run chgrp and list the root user as the new owner.

16. 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


Ensembles d'études connexes

Chapter 5 summary and study questions

View Set

Fundamentals Networking Tech Chapter 2

View Set

OB PrepU Chapter 13: Labor and Birth Process

View Set

C3- Use of electromagnetic waves in communication

View Set

Ch.9-16 Business Communications Final Exam

View Set

Out of My Mind Chapters 11-21 Vocabulary

View Set