wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

A student wishes to create symbolic links in a computer system running Unix. Three text files named "file 1", "file 2" and "file 3" exist in her current working directory, and the student has read and write permissions for all three files. Assume that file 1 contains information about her hobbies, files 1 contains information about her friends and file3 contains information about her courses. The student executes the following sequence of commands from her current working directory

In -s file1 file2
In -s file2 file3

Which of the following types information would be lost from her file system?
I. Hobbies II. Friends
III. Courses

Open in App
Solution

In unix system : $ In - s file 1, file 2 command replace existing file 2 by file 1. If file 2 exist then it is first removed then replace with file 1.
In - s file 1 file 2
In - s file 2 file 3

So, file 2 replace file 3 the file replace file 2 i.e. friends and courses are lost and hobbies are remaning.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
CHEMISTRY
Watch in App
Join BYJU'S Learning Program
CrossIcon