Assume that a file’s permissions give you read and write
access. What operations can you perform
on the file if it is in a directory which has “r”(read)
only process? What operations can you perform
on the file if it is in a directory which has “x”(execute)
only access?



Assume that a file’s permissions give you read and write access. What operations can you perform..

Answer / l.nakkeeran.

a) If the Directory have only read permission and the file
inside the directory contains rw permission then we cant do
nothing.We never enter in to the directory.To enter into the
directory we need execute permission for directory
first.Then only we can access the file inside the directory.

b) If the directory have the execute permission then we
enter in to the directory, but we cant view/list the files
in the directory.

Is This Answer Correct ?    10 Yes 2 No

Post New Answer

More Unix Commands Interview Questions

Explain the read, write, and execute permissions on a UNIX directory.

5 Answers  


How do I use grep to search for a file?

0 Answers  


How do I search for a file in unix command?

0 Answers  


What are the commands in UNIX to list the files in a Directory?

0 Answers   CGI,


What command will bring user back to their home directory in UNIX?

13 Answers   IBM, Wipro,






1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?

7 Answers  


How to find and replace the below command?

2 Answers   HCL,


distinguish between physical addresses and logical address?

23 Answers   College School Exams Tests, CTS, Infosys, SAX, TATA, TCS,


In Unix file permissions what does the second field denotes?

3 Answers  


in UNIX,what is the command to remove directory with files?

10 Answers  


distinguish between user mode and kernel mode?

6 Answers   Infosys,


How do I search a whole word in vim?

0 Answers  


Categories