11. (12 pts; 3 pts each Running 1s-1 in a directory prints the following to the
ID: 3904609 • Letter: 1
Question
11. (12 pts; 3 pts each Running 1s-1 in a directory prints the following to the standard out. wx-wxr-1 altintas staff 17 Feb 18 17:34 temp.txt The user runs the following commands through the shell in order: ep temp.txt too.txt chmod 731 temp.txt chmod g+r foo.txt mkdir myfiles ed myfiles 1s ./readme.txt (assume copying a file keeps the original permissions) Finally, the user executes 1s (where it says ) for the standard output of the 1s -al command (group name is omitted). -1a in the same working directory where we first started. Fill in the blanks Number of files Owner File size(bytes) Date Directory/File names Permission drwxr-xr-x drwxr-xr-x rw-r-r- altintas 192 Feb 18 17:41. altintas 288 Feb 18 17:33. altintas Feb 18 17:41 1.cuse answer sheet> 1 17 64 Feb 18 17:41 foo.txt Feb 18 17:41 3.cuse answer sheet> cuse answer sheet> 1altintas altintas altintas drwxr-xr-x 17 Feb 18 17:34 temp.txt 4.cuse answer sheet> 1Explanation / Answer
1. 'readme.txt'
The file 'readme.txt' has the permssion as -rw-r--r-- (644)
2. '-rwxr-xr--'
The file 'foo.txt' has the permssion as -rwxr-xr-- (774)
chmod 734 temp.txt
cp temp.txt foo.txt [assuming copying keeps original permission]
so foo.txt has 734 too now ie -rwx-wxr--
now chmod g+r temp.txt adding read to group
so foo.txt has 774 now ie -rwxrwxr--
3. myfiles
drwxr-xr-x is the permission of direcory 755
4 '-rwx-wx--x'
the file temp.txt has permission -rwx-wx--x 731
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.