Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ONLY 2,8,9,10 PLS Consider a file system with the following directory structure. Write down the Unix commands to do the following. Only problems 4, 9

image text in transcribedimage text in transcribed

ONLY 2,8,9,10 PLS

Consider a file system with the following directory structure. Write down the Unix commands to do the following. Only problems 4, 9 and 10 require you to use a computer. bin etc john mary staff labs Admin Assistant security apps (10 pts) Assuming that you are in the root directory, change into the directory Admin using a single command. 1. (10 pts) Assuming still in Admin, rename the file users.txt in security to role.txt, using a single command without changing into security. 2. 3. (10 pts) Assuming still in Admin, list the last 20 lines of the file logs under apps, using a single command. (10 pts) Assuming still in Admin, copy the file role.txt in security into directory mary, using a single command. In your command, must you state the name role.txt in the mary directory? Find it out yourself by trying on a computer. 4. 5. (10 pts) Assuming still in Admin, change the current directory to john using a single command. 6. (10 pts) Assuming still in john, create a directory called homeworks in the directory john, using a single command. (10 pts) Assuming still in john, create an empty file called hw1 in homeworks using a single command touch 7. 8. (10 pts) Assuming still in john, remove labs and everything under it such as files and subdirectories 9. (10 pts) Give the format of using the command man to look up the definition of commend rm 10. (10 pts) Using the above command man, tell whether rm -r is equivalent to rm -R

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions