Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Unix Question 1. The three valid permission settings for a file are: a. open, cl

ID: 3883831 • Letter: U

Question

Unix

Question 1. The three valid permission settings for a file are:

a. open, close, execute

b. write, execute, read

c. read, change, open

d. change, write, open

e. read, write, enter

Question 2. Explain the effect of issuing the following commands on myfile.

chmod 755 myfile

chmod 600 myfile

chmod 777 myfile

Question 3. Joe belongs to a group that has all permissions to file office_stuff, but Joe, the file’s owner, has no permissions. What, if any, operations can Joe perform on the file? What command will grant the Joe all permissions on the file?

Question 4. Write a simple script that saves a copy of all files in your home directory to a file. Call this file hw3_q4.hw

Question 5. Write a simple script that writes the output of any file containing the word "flag" to a file in your home directory called hw3_q5.hw

Question 6. Write 2 simple scripts. One that turns on auto coloring for the "ls -al" and one that turns it off. Save this file in your home directory as hw3_q6.hw

Explanation / Answer

Dear Student,

here are the answers...

------------------------------------------------------------------------------------------------------------------------------------------

Ans 1: Option no B is correct.

The three valid permission settings for a file are: read, write, and execute permissions.

------------------------------------------------------------------------------------------------------------------------------------------

Answer No: 5

the effect of issuing the following commands on myfile are described below..

first you must know file permision are represeneted by a octal number.

2 = write

4 = read

1 = execute

and in a file we have total three groups:

1: user

2: group

3: others

1: chmod 755 myfile

7 = 4 + 2 + 1 i.e user has read write and execute permisions

5 = 4 + 1 i.e read + execute permisions for group

5 = 4 + 1 i.e read + execute permisions for other

-----------------------------------------------------------------------------------------------------------------------------------------

2 : chmod 600 myfile

6 = 4 + 2 i.e read + write permisions for user

0 = no permisions for group

0 = no permisions for others

----------------------------------------------------------------------------------------------------------------------------------------

3: chmod 777 myfile

7 = 4 + 2 + 1 i.e user, group, others all have read + write + execute permissions.

----------------------------------------------------------------------------------------------------------------------------------------

Ans: 3

Joe belongs to a group that has all permissions to file office_stuff, but Joe, the file’s owner, has no permissions. What, if any, operations can Joe perform on the file? What command will grant the Joe all permissions on the file?

"chmod 700 office_stuff" command will grant all permissions on the file.

------------------------------------------------------------------------------------------------------------------------------------------

Kindly Check and Verify Thanks...!!!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote