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.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.