Threesuns

Email the Instructor

Contact

All Semesters

Semesters

All Courses

Courses

2014Fall

08.19.13 - 12.20.13

Introduction to UNIX/Linux

CSCI1483

Tuesday Thursday
10:00 AM - 11:20 AM

Links and Permissions

Lab04

Objective: To work with linking and permission commands for practice

pastdue

Submit Your Solution

Lab04

Request a Copy of your Solution

Lab04

Requirements

Correctly record the command used for each command (2 points each)20 pts
Total20 pts

Instructions

Perform each of the tasks described below and record the command(s) used to complete each task in a text file.

  1. In your home directory, create a file named "linktest".
  2. Create a subdirectory named "lab4" under your home directory.
  3. Create a hard link from the file named "linktest" to a file named "newlink" in your "lab4" directory.
  4. Use the "ls -i" command to determine the inode numbers for "linktest" and "newlink".
  5. Delete the file named "linktest" from your home directory. Does "newlink" still exist?
  6. Create a file called "testit" in your home directory.
  7. Change the permissions on the "testit" file so that it is executable by any user on the system using the standard method.
  8. Change the permissions for testit again so that the owner of the file can read and execute it, but no one else has permission to read, write, or execute it using the standard method.
  9. Change the permissions on the testit file again so that the user has write and execute and everyone else has only read using the octal method.
  10. Change the permissions for the testit file one last time so that everyone (user, group, and other) has only read permission using the octal method.