Question: 1. The command should be used to delete a non empty directory. [2 marks] 2. What is the sudo command used for? Explain. [2 marks]

 1. The command should be used to delete a non empty

1. The command should be used to delete a non empty directory. [2 marks] 2. What is the sudo command used for? Explain. [2 marks] 3. Answer the following questions- [4 marks] In the linux operating system the home directory is referred to by the tilde () character. Thus, typing the command: Is /mystuff will show the content of the mystuff directory under your home directory, no matter what your current working directory is. a) Based on the above elaboration what do you think the following command will list? ls b) How about this one: Is /. 4. Consider we use the following command to change the access permission of a parent directory "flower", explain how the permission will affect its sub directories and files? [2 marks] chmod -R u+rwx,g=r,o-wx flower 5. You are writing a program. You need to be able to read, write and execute the program. You want everyone else (group and others) to only read your program. How you can ensure that? (Use octal representation) [ 2 marks] CPAN133 Winter 2023 6. What is the command to remove write permission for User, Group and Others of the file 'red.txt'? (Use symbolic representation) [2 marks] 7. Discover the umask command (answer each of the following questions) [6 marks] a) Display the value of umask. b) Assume the umask value of 0057 is set for the normal user. Find out what will be the default permissions for newly created files and directories. You should show your work. c) Create a new file named testmask.txt. and list the permissions of this file. Copy the output from the terminal and paste here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!