Part 0 Use the following ls -li generated output to answer the questions for part 0 of this assignment. 1315 -r--r--r-- 1 joe mgmt 1671 Feb 11 17:29 fsystem 1415 -rwx--x--x 1 mary peon 1596 Feb 12 03:39 [url removed, login to view] 4293 -r--r--r-- 1 neil mgmt 1111 Feb 12 04:44 [url removed, login to view] 1234 drwxr-xr-x 2 jill peon 512 Feb 19 05:00 goals 2001 ----r---w- 2 tyler peon 1635 Feb 14 10:14 lab0 1957 ---x--x--x 1 jill peon 1460 Feb 14 07:10 [url removed, login to view] 3322 -rwxrwxrwx 1 joe mgmt 359 Feb 20 11:07 perms 3323 -rwxr-xr-- 1 tyler peon 2660 Feb 19 05:00 [url removed, login to view] 2001 ----r---w- 2 frank peon 1635 Feb 14 10:14 suse What LOGNAME is the owner of the file named perms? What is the name of the largest regular file? What is the name of the most recently modified regular file? Which file(s) belong to the group mgmt? What LOGNAME is the owner of the only directory? Yes or No. Are any of the regular files hard-linked together? Yes or No. Can user fred read the file [url removed, login to view] Yes or No. Can user frank remove the file lab0 ? Yes or No. The file [url removed, login to view] is a text file. Does it make sense for it to be marked executable? What is the i-node number of the file owned by user neil? Part 1 Log onto [url removed, login to view] and do the following. In your home directory, create a directory named Perms. [The name must start with an upper-case pee.] Change your working directory to the Perms directory. Do a pwd to make sure you are in the correct directory. Using the touch command, create the files named file0 file1 file2 file3 Using the touch command, change the modification date and time of the file named file0 to 01 Feb 2001 at 06:15:00pm. [Hint: Use the --full-time option when using the ls command.] Change the permissions on file file1 to rwxrw---- [read/write/execute for owner, read/write for group, nothing for others] Change the permissions on file file2 to r-x-w---x [read/execute by owner, write-only for group, execute only for others] Link the file named file3 to a file having your LOGNAME as the file name. Copy file0 to file4 Change permissions on file file4 to r--r--r-- [read-only for owner, read-only for group, read-only for others]
Submit this assignment as follows. Turn in a hard-copy of your answers for Part 0. I will check Part 1 of the assignment by a Unix shell script.