Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Linux please help Project 4-6 In this hands-on project, you delete files and directories using the rmdir and rm commands. 1. Switch to a command-line

Linux please help Project 4-6

In this hands-on project, you delete files and directories using the rmdir and rm commands.

1. Switch to a command-line terminal (tty5) by pressing Ctrl1Alt1F5 and log in to the terminal using the user name of root and the password of LINUXrocks!.

2. At the command prompt, type cd samples and press Enter. At the command prompt, type ls -R and press Enter. Note the two empty directories todelete and undermysamples.

3. At the command prompt, type rmdir undermysamples todelete and press Enter. Did the command work? Why? Next, type ls F at the command prompt and press Enter. Were both directories deleted successfully?

4. At the command prompt, type rm sample1* and press Enter. What message is displayed? Answer n to all three questions.

5. At the command prompt, type rm f sample1* and press Enter. Why were you not prompted to continue? Next, type ls F at the command prompt and press Enter. Were all three files deleted successfully? What other command may be used to delete a file within Linux?

6. At the command prompt, type cd .. and press Enter. Next, type rmdir samples at the command prompt and press Enter. What error message do you receive and why?

7. At the command prompt, type rm -rf samples and press Enter. Next, type ls F at the command prompt and press Enter. Was the samples directory and all files within it deleted successfully?

8. Type exit and press Enter to log out of your shell.

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

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

1.The difference between climate and weather?

Answered: 1 week ago

Question

1. What is Fog ?

Answered: 1 week ago

Question

How water vapour forms ?

Answered: 1 week ago

Question

What is Entrepreneur?

Answered: 1 week ago

Question

Which period is known as the chalolithic age ?

Answered: 1 week ago