程序代写代做代考 file system Submit your answers to the following questions in this folder (report) in a file named answers.txt.

Submit your answers to the following questions in this folder (report) in a file named answers.txt.

1. Create two small text files, file1.txt and file3.txt, containing different contents. Obtain the inode number of file1.txt with the command

ls –li file1.txt

What inode number did you get?

2. The UNIX file system supports hard links and soft (symbolic) links. Enter the following command to create a hard link between file1.txt and file2.txt:

ln file1.txt file2.txt

What are the inode values of file1.txt and file2.txt? Explain why they are the same or different.

3. Do file1.txt and file2.txt now have the same or different contents? Explain why this is so.

4. Edit file2.txt to change its contents. After you have done so, examine the contents of file1.txt. Are the contents the same or different? Explain why this is so.

5. Remove file1.txt with the command

rm file1.txt

Does file2.txt still exist? Explain why this is so.

6. Create a symbolic link to file to file3.txt with the command

ln –s file3.txt file4.txt

What are the inode values of file3.txt and file4.txt? Explain why they are the same or different.

7. Edit the contents of file4.txt. Examine the contents of file3.txt and explain what you see.

8. Remove file3.txt. Explain what happens when you then try to edit file4.txt.