Question: At the command prompt, type mv sample 1 * mysamples and press Enter. Type y and press Enter to confirm you want to overwrite the

At the command prompt, type mv sample1* mysamples and press Enter. Type y and press Enter to confirm you want to overwrite the file sample1B in the destination directory.
14
At the command prompt, type ls -F sample* and press Enter. Notice that there are no sample files in the /root directory.
15
At the command prompt, type cd mysamples and press Enter. Next, type ls -F at the command prompt and press Enter. Notice that all files originally in /root have been moved to this directory.
16
At the command prompt, type cd .. and press Enter. Next, type ls -F at the command prompt and press Enter. Type mv mysamples samples and press Enter. Next, type ls -F at the command prompt and press Enter. Why did you not need to specify the recursive option to the mv command to rename the mysamples directory to samples?
17
Type exit and press Enter to log out of your shell.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!