Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

Introduction to UNIX/Linux

CSCI1483

3 credits

Labs

Links and Permissions

Lab

20 points

Requirements

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

Objective

To work with linking and permission commands for practice

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.