Write the command to copy the file “diet” as ‘chart’ to the “Personal” subdirectory listed in the “Weights” directory.
Assuming that "diet" is in the current directory,
and assuming that "Weights" is a local directory
containing a "Personal" directory, then
cp diet Weights/Personal/chart
will copy and rename the command. Perhaps it will
help to show a "before" and "after" of the files
involved:
Before the command:
$ ls -FR
Weights/ diet
./Weights:
Personal/
After the command:
$ cp diet Weights/Personal/chart
./Weights/Personal:
chart
Note that file "chart" has appeared in the
"Weights/Personal/" directory.
.
Copyright © 2024 Q2A.MX - All rights reserved.
Answers & Comments
Verified answer
Assuming that "diet" is in the current directory,
and assuming that "Weights" is a local directory
containing a "Personal" directory, then
cp diet Weights/Personal/chart
will copy and rename the command. Perhaps it will
help to show a "before" and "after" of the files
involved:
Before the command:
$ ls -FR
Weights/ diet
./Weights:
Personal/
After the command:
$ cp diet Weights/Personal/chart
$ ls -FR
Weights/ diet
./Weights:
Personal/
./Weights/Personal:
chart
Note that file "chart" has appeared in the
"Weights/Personal/" directory.
.