operating systems and you becoming a power user week 2 answers
Permissions
2. You're given the output of an ls -l of a file in Linux.
1 ls -l books_file
2 dr-x-wxr-- 1 phelan cool_group 0 Aug 20 11:10 books_file
Answer the following question: What does the first character of output signify?
- books_file is a directory
- The file owner is a class D user
- books_file is a disk device
- The file owner has delete permissions
3. You're given the output of an ls -l of a file in Linux.
1 ls -l books_file
2 dr-x-wxr-- 1 phelan cool_group 0 Aug 20 11:10 books_file
Answer the following question: Who does the last trio of bits (r--) in the file permission and attributes refer to?
- All other users
- File owner
- Group file belongs to
- Regular file
4. You're given the output of an ls -l of a file in Linux.
1 ls -l books_file
2 dr-x-wxr-- 1 phelan cool_group 0 Aug 20 11:10 books_file
Answer the following question: What permissions does the second trio of bits (-wx) give you? Check all that apply.
- Read
- Write
- Group file belongs to
- Execute
5. If I wanted to change permissions of a file called honey_bears, what command could I use to grant write access to the owner of the file without changing other permissions? The owner currently only has read access to the file. Check all that apply.
- chmod u+w honey_bears
- chmod o+w honey_bears
- chmod 644 honey_bears
- chmod 400 honey_bears