Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer all questions Due Date: Week 4. References: Textbook, Lecture notes. Special Instructions: 1. This assignment should be completed individually by all the students.
Please answer all questions
Due Date: Week 4. References: Textbook, Lecture notes. Special Instructions: 1. This assignment should be completed individually by all the students. Show your work to your professor [ @ Week 4 ) in the lab and submit the solution. 2. Take screen capture of the command & output and past it in this document. 3. Each point in this LAB has [1 Mark] 4. Be ready to present your work on Week4. On prof discretion, you might be asked to run the relevant commands as part of your presentation. Exercise #1 1- Create the following directory maps: TECH172-1 WK01 TECH172-2 ~/LABS WORK01 WKO2 WORKO2 SOFTLINKO1 LK01 SOFTLINKO2 ~/LINK HARDLINKO1 LKO2 HARDLINKO2 2- Create filename /LABS/WK01/TECH0172-1/file1.txt by using vi and write the following statement in it: File and path names There are two ways to reference a file in Unix: a- using a relative path name or using an absolute path name. An absolute path name always begins with a / and names every directory on the path from the root to the file in question. A relative path names a path relative the current working directory. The current working directory is set using the cd command. Note The special name ".." is used to reference the directory above the current working directory. b- There are two ways to reference a file in Unix: using a relative path name or using an absolute path name. An absolute path name always begins with a / and names every directory on the path from the root to the file in question. d- using a relative path name or using an absolute path name. An absolute path name always begins with a / and names every directory on the path from the root to the file in question. e- A relative path names a path relative the current working directory. The current working directory is set using the cd command. Note The special name ".." is used to reference the directory above the current working directory. 3- Check the file1.txt permission and create time. Exercise #2 4- Make many copies for file1.txt to be as following: /WK01/TECH172-2/file2.txt /WK01/file3.txt /WK02/WORKO1/file1.txt /WK02/WORKO2/file2.txt /WK02/file3.txt 5- Change name of the following files /WK01/TECH172-2/file2.txt to/LABS/WK01/TECH172-2/file2.html /LABS/WK02/WORKO2/file2.txt to/LABS/WK02/WORKO2/file2.html /LABS/WK02/WORK01/file1.txt to "/LABS/WK02/WORKO1/file1.html /LK01 +to+/LINK/LWK01 /LKO2 +to+/LINK/LWKO2 Exercise #3 6- Make symbolic link for the following files: Original File /WK01/TECH172-1/file1.txt /WK02/WORKO2/file2.html Soft Link /LWK01/SOFTLINK01/Lfile1.txt /LWK01/SOFTLINKO2/Lfile2.html 7- Update the contain of Lfile1.txt by delete point d and e from text by using vi, and check the updating in original file. 8- Delete the file1.txt, and check the contain of Lfile1.txt. 9- Match the Lfile2.html with file2.html. 10- Rename the file2.html to file22.html, and check the contain of Lfile2.html. Exercise #4 11- Make hard link for the following files: Original File /WK01/TECH172-2/file1.txt /WK02/WORK01/file1.html Hard Link /LWK02/HARDLINK01/Lfile1.txt /LWK02/HARDLINKO2/Lfile1.html 12- Update the contain of Lfile1.txt by delete point d and e from text by using vi, and check the updating in original file. 13- Delete the file1.txt, and check the contain of Lfile1.txt. 14- Match the Lfile2.html with file2.html. 15. Rename the file2.html to file22.html, and check the contain of Lfile2.html. Due Date: Week 4. References: Textbook, Lecture notes. Special Instructions: 1. This assignment should be completed individually by all the students. Show your work to your professor [ @ Week 4 ) in the lab and submit the solution. 2. Take screen capture of the command & output and past it in this document. 3. Each point in this LAB has [1 Mark] 4. Be ready to present your work on Week4. On prof discretion, you might be asked to run the relevant commands as part of your presentation. Exercise #1 1- Create the following directory maps: TECH172-1 WK01 TECH172-2 ~/LABS WORK01 WKO2 WORKO2 SOFTLINKO1 LK01 SOFTLINKO2 ~/LINK HARDLINKO1 LKO2 HARDLINKO2 2- Create filename /LABS/WK01/TECH0172-1/file1.txt by using vi and write the following statement in it: File and path names There are two ways to reference a file in Unix: a- using a relative path name or using an absolute path name. An absolute path name always begins with a / and names every directory on the path from the root to the file in question. A relative path names a path relative the current working directory. The current working directory is set using the cd command. Note The special name ".." is used to reference the directory above the current working directory. b- There are two ways to reference a file in Unix: using a relative path name or using an absolute path name. An absolute path name always begins with a / and names every directory on the path from the root to the file in question. d- using a relative path name or using an absolute path name. An absolute path name always begins with a / and names every directory on the path from the root to the file in question. e- A relative path names a path relative the current working directory. The current working directory is set using the cd command. Note The special name ".." is used to reference the directory above the current working directory. 3- Check the file1.txt permission and create time. Exercise #2 4- Make many copies for file1.txt to be as following: /WK01/TECH172-2/file2.txt /WK01/file3.txt /WK02/WORKO1/file1.txt /WK02/WORKO2/file2.txt /WK02/file3.txt 5- Change name of the following files /WK01/TECH172-2/file2.txt to/LABS/WK01/TECH172-2/file2.html /LABS/WK02/WORKO2/file2.txt to/LABS/WK02/WORKO2/file2.html /LABS/WK02/WORK01/file1.txt to "/LABS/WK02/WORKO1/file1.html /LK01 +to+/LINK/LWK01 /LKO2 +to+/LINK/LWKO2 Exercise #3 6- Make symbolic link for the following files: Original File /WK01/TECH172-1/file1.txt /WK02/WORKO2/file2.html Soft Link /LWK01/SOFTLINK01/Lfile1.txt /LWK01/SOFTLINKO2/Lfile2.html 7- Update the contain of Lfile1.txt by delete point d and e from text by using vi, and check the updating in original file. 8- Delete the file1.txt, and check the contain of Lfile1.txt. 9- Match the Lfile2.html with file2.html. 10- Rename the file2.html to file22.html, and check the contain of Lfile2.html. Exercise #4 11- Make hard link for the following files: Original File /WK01/TECH172-2/file1.txt /WK02/WORK01/file1.html Hard Link /LWK02/HARDLINK01/Lfile1.txt /LWK02/HARDLINKO2/Lfile1.html 12- Update the contain of Lfile1.txt by delete point d and e from text by using vi, and check the updating in original file. 13- Delete the file1.txt, and check the contain of Lfile1.txt. 14- Match the Lfile2.html with file2.html. 15. Rename the file2.html to file22.html, and check the contain of Lfile2.htmlStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started