Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Switch to a command - line terminal ( tty 5 ) by pressing Ctrl + Alt + F 5 and log in to the terminal
Switch to a commandline terminal tty by pressing CtrlAltF and log in to the terminal using the user name of root and the password of LINUXrocks!.
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.
At the command prompt, type rmdir undermysamples todelete and press Enter. Next, type ls F at the command prompt and press Enter. Were both directories deleted successfully? Why?
At the command prompt, type rm sample and press Enter. What message is displayed? Answer n to all three questions.
At the command prompt, type rm f sample 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?
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?
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?
Step 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