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 sample1 and press Enter. Next, type cat hardlinksample at the command prompt and press Enter. Next, type cat hardlinksample2 at the command prompt and press Enter. Are the contents of each file the same? Why?
7
At the command prompt, type ln s sample2 symlinksample and press Enter. Next, type ls -F at the command prompt and press Enter. Does anything in the terminal output indicate that sample2 and symlinksample are symbolically linked? Next, type ls -l at the command prompt and press Enter. Does anything in the terminal output indicate that sample2 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?
8
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.
9
At the command prompt, type ls -l and press Enter. What is the size of the symlinksample file compared to sample2? Why? Next, type cat sample2 at the command prompt and press Enter. What are the contents and why?
10
At the command prompt, type ln s /etc/samba 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 /etc/samba at the command prompt and press Enter.
Note that your samba directory is merely a pointer to the /etc/samba 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 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!