Question: Look at the file listing below which was generated by the ls - l command: total 6 8 - rw - r - - -
Look at the file listing below which was generated by the ls l command:
total
rwr nick staff Feb : file
rwrwr nick video Feb : file
rwxrxrx nick nick Feb : file
a For each file, who can write information to them?
b Which files are executable?
c A program is compiled and results in an executable file prog being created in
this directory. When the command prog is issued at the prompt, the following
is printed:
bash: prog: command not found
Why does the program not run, and what could be done to correct this?
d The command ln s file f ; ln file f is executed and the contents
of this directory are now listed as follows:
lrwxrwxrwx nick nick Feb : f file
rwrw nick video Feb : f
rwrr nick nick Feb : file
rwrw nick video Feb : file
rwxrxrx nick nick Feb : file
rwrr nick nick Feb : prog
The user then enters the command rm file without properly considering the
consequences.
i If the ls command which produced the above were repeated, which entries
would no longer be present?
ii Are the old contents of file and file still accessible through f and
f Explain your answer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
