Write a single command that will achieve the same result as
Write a single command that will achieve the same result as the two commands in Question 3?
Question3)
There are two directories, One and Two, under the current directory, with the following contents:
One: file1.txt, file2.txt
Two: file3.txt, file4.txt
What are the resulting contents of both directories after the following set of commands:
cp One/file2.txt Two/file5.txt
rm One/file2.txt
Solution
The move command can be used to copy the file to another location by renaming it and also deletes it from the source location.
mv One/file2.txt Two/file5.txt
