Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

View the contents of this file and the passwd file in the /etc directory to make sure it is the same file. 30.) What commands

View the contents of this file and the passwd file in the /etc directory to make sure it is the same file. 30.) What commands did you enter to view both files?

To delete a file, type rm filename, where filename is the name of the file. Delete the accounts file. 31.) Did you receive a message? To always be prompted when deleting files, you can use rm i filename , and to avoid any potential message, you can type rm f filename.

This file is Foo.txt

Lets get the file back. Type a cp command to copy the passwd file from the /etc directory to your current location. To indicate your current location, use a . as in cp path_to_filename . where path_to_filename is the path to the file. You should still be in the temp directory. 32.) What command did you enter?

Move up one level in the file space. Lets try to delete the temp directory. Type rmdir temp. What happened? Why? To delete a non-empty directory, first delete the files from within it. Or, use the rm command with the option r, changing the delete into a recursive delete. Type rm r temp and see what happens. 33.) What do you think recursive delete means? You might choose to research this question. At this point, you can close your terminal window and shut down your Linux VM.

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 Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions