Question: At the command prompt, type cat sample 1 and press Enter. Next, type cat hardlinksample at the command prompt and press Enter. Next, type cat
At the command prompt, type cat sample and press Enter. Next, type cat hardlinksample at the command prompt and press Enter. Next, type cat hardlinksample at the command prompt and press Enter. Are the contents of each file the same? Why?
At the command prompt, type ln s sample symlinksample and press Enter. Next, type ls F at the command prompt and press Enter. Does anything in the terminal output indicate that sample and symlinksample are symbolically linked? Next, type ls l at the command prompt and press Enter. Does anything in the terminal output indicate that sample and symlinksample are symbolically linked? Next, type ls li at the command prompt and press Enter to view the inode numbers of each file. Do the two symbolically linked files have the same inode number?
At the command prompt, type vi symlinksample and press Enter. Enter a sentence of your choice into the vi editor, and then save your document and quit the vi editor.
At the command prompt, type ls l and press Enter. What is the size of the symlinksample file compared to sample Why? Next, type cat sample at the command prompt and press Enter. What are the contents and why?
At the command prompt, type ln s etcsamba samba and press Enter. Next, type ls F at the command prompt and press Enter. What file type is indicated for samba? Next, type cd samba at the command prompt and press Enter. Type pwd at the command prompt and press Enter to view your current directory. What is your current directory? Next, type ls F at the command prompt and press Enter. What files are listed? Next, type ls F etcsamba at the command prompt and press Enter.
Note that your samba directory is merely a pointer to the etcsamba directory. How can this type of linking be useful?
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
