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?
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 |
How to display a file name which has zero bytes in size.
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What does the command ' $who | sort –logfile > newfile' do?
How do you find path of a directory? Give its syntax.
what do you understand by 'building block primitive'?
How to get a particular string as your prompt ? Give syntax of that command?
Which command will you use to change the permissions on file?
solaris Run level?
What is the function of grep command in unix?
What is the search command in unix?
what is the cmd to display the last exit status in UNIX?
What is the difference between Shell Programming and Shell scripting?
10 Answers HCL, TCS, Wipro,