Question: At the command prompt, type cd samples and press Enter. Next, type ls - F at the command prompt and press Enter. What files do
At the command prompt, type cd samples and press Enter. Next, type ls F at the command prompt and press Enter. What files do you see? Next, type ls l at the command prompt and press Enter. What is the link count for the sample file?
At the command prompt, type ln sample hardlinksample and press Enter. Next, type ls F at the command prompt and press Enter. Does anything in the terminal output indicate that sample and hardlinksample are hardlinked? Next, type ls l at the command prompt and press Enter. Does anything in the terminal output indicate that sample and hardlinksample are hardlinked? What is the link count for sample and hardlinksample? Next, type ls li at the command prompt and press Enter to view the inode numbers of each file. Do the two hardlinked files have the same inode number?
At the command prompt, type ln sample hardlinksample and press Enter. Next, type ls l at the command prompt and press Enter. What is the link count for the files sample hardlinksample, and hardlinksample Why?
At the command prompt, type vi sample and press Enter. Enter a sentence of your choice into the vi editor, and then save your document and quit the vi editor.
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
