assignment4

docx

School

Washtenaw Community College *

*We aren’t endorsed by this school

Course

120

Subject

Computer Science

Date

Apr 3, 2024

Type

docx

Pages

2

Uploaded by PresidentFlowerAlbatross

Report
Assignment 4 CIS120 For this assignment you use this page to answer the questions shown below. You must do the commands as well. Each answer will follow the question and will be written in blue and bold. 1. Go into your assignment's directory. Create a directory within your assignment's directory named "assignment4" write the command you used to do this. cd assignments mkdir assignment4 2. Write the command would you enter to get your UID number write the command to do this. id 3. Go into your assignment4 directory write the command to do this. cd assignment4 4. Within your assignment 4 folder. Use the echo command write a file that has the text "this is a sample file" name the file "file1.txt" write the command to do this. echo “this is a sample file” > file1.txt 5. Staying in your assignment 4 folder write the command that will display the permission for the file you just created and only that file. Write the command to do this. ll 6. Looking at the permissions for file1.txt what symbol tells you it is a file? write the symbol here. -rw------- 7. Staying in your assignment4 folder write the command to change the permissions on file1.txt so only the owner only has read and write permissions and no access for anyone else. Write your command here. chmod 600 file1.txt 8. Write the command to display the umask setting. Write your command here. umask
9. Staying in your assignment4 folder write the command that will change the group ownership to faculty for file1.txt. You don't have permissions to actually do it so just write the command. Write your command here. chown :faculty file1.txt 10.In the following permissions drwx--xr--. what is the type? Write your answer here. File type is directory 714 11.Staying in assignment4 create a directory named testdir. Write your answer here. mkdir testdir 12.Staying in assignment4 change the directory permissions for test directory so they would look like this drwx--xr--. Write your answer here. chmod 714 testdir
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help