Question: 3 . 2 File System Links Imaging the following commands are run on a file system that supports hard and soft links. echo file >

3.2 File System Links
Imaging the following commands are run on a file system that supports hard and soft links.
echo file> file
ln file file2
echo file2>> file2
mv file file3
echo file3>> file3
Q1: What output will you see if you run `cat file2?
a) file2
b) file
file2
c) file
file2
file3
d) file2: No such file or directory
e) None of the above.
Q2: What output will you see if you run `cat file3?
a) file2
b) file
file2
c) file
file2
file3
d) file2: No such file or directory
e) None of the above
Imaging the following commands are run on a file system that supports hard and soft links.
echo bar> bar
ln -s bar bar2
echo bar2>> bar2
mv bar bar3
echo bar3>> bar3
Q1: What output will you see if you run `cat bar2?
a) bar2
b) bar
bar2
c) bar
bar2
bar3
d) bar2: No such file or directory
e) None of the above.
Q2: what output will you see if you run cat bar3?
a) bar2
b) bar
bar2
c) bar
bar2
bar3
d) bar2: No such file or directory
e) None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!