Refer to the exhibit. A network engineer must copy the “config.txt” file from directory TEST to directory PROD. The copied file must also be renamed into “current.txt”. Which command must be used to accomplish these tasks?
To copy a file from one directory to another and rename it in the process, the cp (copy) command in Linux can be used with the appropriate source and destination paths:
Command Breakdown:
cp: The copy command.
./TEST/config.txt: The source file path.
./PROD/current.txt: The destination file path with the new name.
Thus, the correct command to achieve this task is: cp ./TEST/config.txt ./PROD/current.txt
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit