Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project 2-11 In this project, you will delete two of the files you created previously... To delete a file from the current directory: 1. Type

image text in transcribed
image text in transcribed
Project 2-11 In this project, you will delete two of the files you created previously... To delete a file from the current directory: 1. Type ng new_filet and press Enter. This permanently deletos new_filet from the current directory. 2. Type m.- now_file and press Enter. You see the message, mn: remove regular empty file 'new_file2? 3. Type y for yes and press Enter. To delete a group of files using wildcards: 1. You can specify multiple fle names to the touch command. Type touch filo1 file files filegood flebad and press Enter. This command creates these files: file1, file2, files, filegood, and flebed, 2. Type Is file and press Enter. You see the listing for the files you created in Step 1. 3. Type um file and press Enter. 4 Type Is file and press Enter. The files have now been erased. (See Figure below.) Capalnertocalhost - newtitel Impalaeretocalhost-15 newrite? ove regular empty ile newtite2? Y tape localhost 15 touch the futuz rites Pilegood lead [apa localhosts is file pitel file files fitebat filegood (apalmerelocathost-15 ile (epalmerelocalhost -15ls File Project is : No such file or directory lapalmerelocalhost - In this project, you create a directory and then use the imdic command to remove it.. Then, you use the am command to delete a directory that contains subdirectories. To create a directory and then remove it with the rmdic command: 1. Type mkdir newdir and press Enter. This creates a new directory named Dewdir, 2. Use a relative path with the touch command to create a new file in the newdir directory Type touch newditewfile and press Enter. This creates the file newfile in the newdie directory 3. Type Is newdit and press Enter to see a listing of the newfile file. 4. To attempt to remove the directory, type rmdic newdit and press Enter. You see an error message similar to mdit newgir Directory nol empty 3. Use a relative path with the command to delete newfile Type m Dewdid newfile and press Enter 6. The directory is now empty Type codit newdit and press Enter. 7. Type is and press Enter. You will see that the newdir directory is no longer there. To recursively remove a directory with several subdirectories: To recursively remove a directory with several subdirectories: 1: Create a directory with several subdirectories: Type mkdir company and press Enter. Type mkdir company/sales and press Enter. Type mkdir company/marketing and press Enter. Type mkdir companylaccounting and press Enter. 2. Create three empty files in the company directory: Type touch company/file1 company/file2 company/file3 and press Enter. 3. Copy the files to the other directories by doing the following: Type cp company file1 company/file2 company/file3 companyisales and press Enter. Type cp company/file1 company/file2 company/file3 company/ marketing and press Enter. Type cp company/file1 company/file2 company/file3 companyl accounting and press Enter. 4. Use the ls command to verify that the three files were copied into all three directories... 5. Now, remove the company directory and everything it contains: Type m-r company and press Enter 6. Type Is and press Enter. Note that the company directory has been removed (with just one command!) ****** Insert Screenshot of your work here******

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago