Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Step 7. Copy Files to Another Directory If you wish to copy one or more files to another directory use the format: Command Format: cp-i

image text in transcribed

Step 7. Copy Files to Another Directory If you wish to copy one or more files to another directory use the format: Command Format: cp-i sourcefile(s) destinationdirectory This format copies the existing file(s) to another directory in the directory structure. When copying a file this way, it will normally have the same name in the destination directory. When used with the i option, cp prompts for verification before overwriting an existing file. If a file is copied and the name of the destination directory does not exist a new file is created with that name, otherwise the file is copied to the directory specified. When copying more than one file to a directory, the cp command assumes the last entry is a directory name and the prior entries are files. a. Copy the dante.bak file under user2 directory into the practice directory for safekeeping. Do this from your current home directory. What command did you use? b. Change to user2 directory from your home directory, what command did you use? C. Copy the all of the files beginning with the lower case letter "f" and anything in the remaining characters from you current user2 directory into the practice directory using a metacharacter (wildcard) and only one command. What command did you use? d. What command will list a long listing of all the files beginning with the letter "f" under the practice directory from your current user2 directory? e. Copy the nuts file from the coffees subdirectory to the practice directory using a relative pathname from your current user2 directory. What command did you use? f. While in your user2 directory, create a new subdirectory called play under the practice directory using. What command did you use? 5. Copy the notes file from the dir2 subdirectory to the play subdirectory you just created directory using a relative pathname. What command did you use? h. Using a single command, copy all of the files starting with the letters "fr" in your current user2 directory to the play subdirectory using a wildcard. What command did 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

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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions