Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Step 9. Rename a File in the Current Directory The command format below shows the syntax to RENAME a file in the same directory. This

image text in transcribed

Step 9. Rename a File in the Current Directory The command format below shows the syntax to RENAME a file in the same directory. This format changes the name of the source (old File Name) to a target file name (new File Name) in the same directory. Note that the -i (interactive) option is available with the mv command. The mv -i option prompts for confirmation whenever the move would overwrite an existing target file. Command Format: mv (-i) sourceFile targetName Old File Name New File Name | a. What command did you use to go back to your home directory? b. From your home directory, copy the all files starting with the letters "fi" from your user2 directory to the practice directory using a relative pathname. What command did you use? c. Change to the practice directory using a wildcard instead of typing the complete directory name of "practice". What command did you use? d. Rename file1 to newname. What command did you use? e. Create a new empty file called proj-may-2020. What command did you use? f. However, after creating the file, you now realize that the project begins in June, not May. Change the name to proj-june-2020. What command will you use? You can rename files in other directories without leaving your current directory by specifying the path to those files. a. Change back to user2 directory from the current practice directory What command will you use for the relative pathname? b. From your user2 directory, rename file2 under the practice directory to newname2 (also under the practice directory). What command did you use? c. From your user2 directory, rename the beans file in the coffees subdirectory to the name java using relative pathnames. What command did you use? d. Verify that the file was renamed. What command did you use? e. From your user2 directory, change the java file name back to its original name beans using relative pathnames under the coffees subdirectory. What command did you use? f. You decide to copy the bean file under the coffees subdirectory to your practice directory from the current user2 directory, what command will you use? Use a relative pathname? 8. Also, you want to modify (update) the current system's date and time stamp for the coffees subdirectory, what command will you use

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

What role does communication play in developing personal identity?

Answered: 1 week ago

Question

5. Do you have any foreign language proficiency?

Answered: 1 week ago