Home > Unix Programming > Quizzes > Unix Basics Practice Test: Basic File Attributes
Unix Basics Practice Test: Basic File Attributes
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 70% Most missed: “If a file is read protected, we can write to the file.”
Quiz questions on listing file and directory attributes, file ownership and permissions. File attributes can be viewed using the ls -l command. For example, the following output shows the attributes for a file named myfile.txt: -rw-r--r-- 1 user group 1024 Mar 8 12:00 myfile.txt The first character in the output indicates the file type. In this case, the - character indicates that the file is a regular file. The next three characters indicate the file permissions for the owner, group, and other users. In this case, the rw- permission indicates that the owner has read and write permission,... Show more
Unix Basics Practice Test: Basic File Attributes
Time left 00:00
25 Questions

1. Which character is used to replace ‘ugo’ string in chmod command?
2. Which option is used for the recursive functioning of chmod command?
3. How many types of permissions a file has in UNIX?
4. A file contains 1026 bytes. How many bytes of disk space will it consume if size of a disk block is 1024 bytes?
5. Which option is used with ls command to list the directory attributes rather than its contents?
6. To remove write permission from group and others, which one of the following commands will be used?
7. A file can be recognized as an ordinary file or directory by ____ symbol.
8. Which one of the following is not an attribute displayed by ls command?
9. All the three operations i.e read, write and execute can be performed on the file by file owner, group owner and others.
10. If a file is read protected, we can write to the file.
11. Which command is used to change the permissions of a file?
12. UNIX allows the system administrator to use the only chown to change both owner and group.
13. What are links referred to as in file attributes?
14. To assign execute permission to the user (owner) for a file named file01.txt, which of the following command will be used?
15. File attributes are of major concern as compared to directory attributes while performing operations on file system.
16. Which of the following symbol is used with chmod to assign permission to a file?
17. In how many categories are links divided?
18. The write permission for a directory determines that ____________
19. Permissions of a file are represented by which of the following characters?
20. What is execute permission?
21. Soft linked files are provided with different inode number as the original one.
22. An attribute is a specification of an object that defines its property.
23. A file has a permission set as 000 i.e. — — —. Can the file be deleted?
24. If the file is write-protected and the directory has to write permission then we cannot delete the file.
25. What is group ownership?