In: Computer Science
Assuming that you are in hw5 directory
| 
 Create a file named work.sh in your hw5 directory  | 
 cat > work.sh  | 
| 
 Give this file read and write
permission (no execute permissions) for you alone. Change the permissions on the work.sh file so you have read and write permissions.  | 
 chmod u=rw work.sh  | 
| 
 Give everybody else, including the group, read permissions only.  | 
chmod go+r work.sh | 
| 
 Give yourself read, write and execute permissions to the file work.sh  | 
 chmod u=rwx work.sh  | 
| 
 Give everyone else, including the group, execute permissions only.  | 
chmod go+x work.sh | 
| 
 Create a directory named dir1 in your hw5 directory  | 
Mkdir dir1 | 
| 
 Give all users, including the group, read, write and execute access to this directory  | 
chmod gou+rwx dir1
 | 
| 
 Create a directory named dir2 in your hw5 directory  | 
Mkdir dir2 | 
| 
 Give yourself read, write and execute permissions on this directory.  | 
chmod u+rwx dir2
 | 
| 
 Give the group and everyone else only those permissions which will let them run ls on this directory, but nothing else.  | 
chmod go+rx dir2 | 
| 
 Create a directory named dir3 in your hw5 directory  | 
mkdir dir3 | 
| 
 Give yourself full permissions to this directory.  | 
chmod u+rwx dir3
 | 
| 
 Give only the group the ability to run ls on this directory  | 
chmod g+rx dir3 | 
| 
 Give everyone else no privileges on this directory  | 
chmod o-rwx dir3  | 
| 
 Create a symbolic link named homework in your current directory to your hw directory.  | 
ln -s [hw5] [homework]
 | 
| 
 Show the true location of this directory in the /courses hierarchy.  | 
pwd |