CIS 18A - Lab assignment 5-6 It is highly recommended that you try out all the answers before starting the script utilit

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

CIS 18A - Lab assignment 5-6 It is highly recommended that you try out all the answers before starting the script utilit

Post by answerhappygod »

Cis 18a Lab Assignment 5 6 It Is Highly Recommended That You Try Out All The Answers Before Starting The Script Utilit 1
Cis 18a Lab Assignment 5 6 It Is Highly Recommended That You Try Out All The Answers Before Starting The Script Utilit 1 (84.88 KiB) Viewed 44 times
CIS 18A - Lab assignment 5-6 It is highly recommended that you try out all the answers before starting the script utility to record your output. Once you have all the answers, go back and delete all files and directories that you've created durin the try out, and then go through the steps again with the script utility to record the answers. Module 5: Directories and links 1. At your home directory, use vim to create a text file called tempi and put a short sentence in this file, then save the file. 2. Use the script utility to capture your session. 3. Use a command to print out your name on one line, and then use the same command to print Lab 5-6 on the next line. 4. Use one command to show the absolute path of your current directory 5. Based on the output of step 4, use one command and a relative path to move to the var directory, which is under the root directory. 6. Without changing directory, do a listing of the var directory, using an option of the list utility so you can see what file type each file is, but don't use the long listing option. 7. Count the files in the output of question 6, then use a command to print to screen how many of each type of files there are in the var directory Example print out: 2 links, 8 directories, 2 regular files (not the correct answer) 8. Use an absolute path to go to your home directory 9. Create 2 subdirectories under your home directory, diri and dir2 10. Stay in your home directory, copy the file tempi (currently in your home directory, from step 1) to directory diri. You should not have to type temp1 twice on the command line. 11. Stay in your home directory, copy the file temp1 to directory dir2 and call it temp2 12. Stay in your home directory, copy directory diri so it becomes a subdirectory of directory dir2, and call this copy directory dir3. 13. Stay in your home directory, do a listing of directory dir3. 14. Stay in your home directory, create a hard link at your home directory, call the hard link inkl. and have it link to file tempi in directory diz. 15. Stay in your home directory, create a hard link in directory di 12 called link2. and have it link to the same tempi file in directory dir. 16. Use one command to go to directory dit3. 17. Stay in directory dir3, use a command to show that file tempi indir3 now has 3 hard links 18. Go back to your home directory, use the shortest command line. 19. Stay in your home directory, use link to display the content of tempi in directory di rz. 20. Stay in your home directory, create a link called links and have it link to dra. 21. Use the link link to do a listing of dir3. 22. Stay in your home directory, search from the current directory and down all subdirectories for all files named tempi and print their locations 23. Stay in your home directory, search from dit2 and down all subdirectories for all regular files that have 2 or more hard links, and print their locations 24. Stay in your home directory, search from the current directory and down all subdirectories for all fard links to the file campi in directory 13 (This step will take more than one command) 25. When you run the 1s command, the directory and link names are shown in color. This is because when you type 13 on the command line, the command run with a color option Use one comenand (not 1a) to prove that when the ls command runs, it runs with a "color" option 26. Exit out of script. Save the output file so you can continue with Module 6.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply