Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create the file hw5. Write the Unix command to perform the action specified by each step. Be sure to write a Step comment before the

Create the file hw5.

Write the Unix command to perform the action specified by each step. Be sure to write a Step comment before the Unix commands for each step.

  1. Using touch create a file named work.sh in your hw5 directory. Give this file read and write permission (no execute permissions) for you alone. No other account should have any access privileges to this file.
  2. Change the permissions on the work.sh file so you have read and write permissions. Give everybody else, including the group, read permissions only.
  3. Give yourself read, write and execute permissions to the file work.sh. Give everyone else, including the group, execute permissions only.
  4. Create a directory named dir1 in your hw5 directory. Give all users read, write and execute access to this directory.
  5. Create a directory named dir2 in your hw5 directory. Give yourself read, write and execute permissions on this directory. Give the group and everyone else only those permissions which will let them run ls on this directory, but nothing else.
  6. Create a directory named dir3 in your hw5 directory. Give yourself full permissions to this directory. Give only the group the ability to run ls on this directory and to cd into it. Give everyone else no privileges on this directory.
  7. Make sure you are in your hw5 directory. Create a symbolic link named homework in your current directory to your hw directory. (hw5 is inside the hw directory)
  8. Use the homework link you just created to go to your hw directory.
  9. Go back to your hw5 directory. Show the true location of this directory in the /courses hierarchy.
  10. Go to your home directory. Perform a long listing to see the absolute pathname of your it244 directory. cd into this directory using an absolute pathname. This pathname must include the /courses directory. Show your new location. (hw5 is inside hw, and hw is inside it244)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions