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

Unix Question: You are gboyd, are in the group cisdept, and have permissions rwx

ID: 3818626 • Letter: U

Question

Unix Question:

You are gboyd, are in the group cisdept, and have permissions rwx to the current directory.
Consider the output of the following commands:

$ ls -lR
total 4
-rw-r--r-- 1 gboyd cisdept 674 Nov 5 11:47 asmt01.html
-rw----r-- 1 gboyd cisdept 453 Nov 5 11:45 index.html
drwxr-xr-x 2 sue01 cisdept 96 Nov 5 11:54 old

./old:
total 2
-rw-r--r-- 1 gboyd cisdept 453 Sep 23 12:42 asmt01.html

If you execute the command

cp *.html old

which files will get copied to old

Select one:

a. no files get copied

b. index.html only

c. asmt01.html only

d. both index.html and asmt01.html

Explanation / Answer

aAns:A

No file gets copied as index.html is not accessed no read access to the user.

if the index.html has had -rw-r--r-- 1 ,ans would be b

b.index.html only will get copied as the asmt01.html already exists.

So oly one file gets copied.

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