Question: Create a new file and create a hard link and a symbolic link to it. Use vim or redirection to add content of the original

Create a new file and create a hard link and a symbolic link to it. Use vim or redirection to add content of the original file, then use cat and wc to examine each of the two aliases that you created. How does the result prove or disprove that either alias is a copy of the original file?

In your home directory create a hard link and a symbolic link to one of the commands that you know how to use in /usr/bin. For each verify whether or not you can use your hard or symbolic link to execute the command.

Create both a hard link and a symbolic link to the symbolic link you created in the previous step. If either of these work this introduces 2 levels of indirection which you can think of as: file2 -> file1 -> cmd

Record the commands you used. Test and report on which (if any) of these secondary links can be used as an alias to the command.

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 Databases Questions!