Toggle navigation
Home
Ask A Question
Answer Questions
Users
Support/FAQ
Login
Register
278ceg2350lab2.pdf
Details
Question Title:
Computer Science Questions
View the Question
Preview - Click download on the question page for the full document.
aiRA.txt Establish to aiRA.txt a hard link named ls1.txt in D1 and a soft link ls2.txt in D2. Establish inside D3, a soft link named ls3.txt to the ls2.txt file you now have in D2. Create a file named aiRB.txt as follows: ls -aiR > aiRB.txt Now, delete aiRA.txt. Create a file named iRC.txt as follows: ls -aiR > aiRC.txt Question options: After completing all of the steps for this question, the following command outputs "22" without the quotes: wc -l < ~/tmp/D2/ls2.txt Note, the '~' character means "home directory". After completing all of the steps for this question, part of the output of following command is "No such file or directory" without the quotes: less ~/tmp/D3/ls3.txt Note, the '~' character means "home directory". After completing all of the steps for this question, the following command shows that a file named ls3.txt exists in the D3 directory: ls -l ~/tmp/D3 After completing all of the steps for this question, the file ~/tmp/aiRC.txt shows that a file named ls3.txt exists in the directory named D3. After completing all of the steps for this question, examine the aiRB.txt file using your favorite editor or less. The .. entry in the D1 directory has the same i-node as the . entry in ~/tmp. After completing all of the steps for this question, examine the aiRB.txt file using your favorite editor or less. The ls1.txt entry in the D1 directory has the same i-node as the aiRA.txt entry in ~/tmp. After completing all of the steps for this question, examine both the aiRC.txt and aiRB.txt files using your favorite editor or less. In aiRB.txt, the ls1.txt entry in the D1 directory has a different i-node than the ls1.txt entry in the D1 directory listed in the aiRC.txt file. After completing all of the steps for this question, the symbolic link, ls2.txt, was broken when the aiRA.txt file was deleted. After completing all of the steps for this question, the symbolic link, ls3.txt, was not broken when the aiRA.txt file was deleted because ls3.txt is a symbolic link to ls2.txt. After completing all of the steps for this question, the following command shows the contents of ~/tmp/D1/ls1.txt, and it works because even though the file aiRA.txt was deleted, the hard link in D1 still references the i-node of the aiRA.txt file. The storage for the aiRA.txt file was not actually deleted. less ~/tmp/D1/ls1.txt ">