Quote:
|
Originally Posted by Snowflake
How do i use the terminal to move or copy files?
|
Lets say you have file1 in your /home/yourname directory
To move the file to /home/yourname/directory1
mv /home/yourname/file1 /home/yourname/directory1/
To copy the file to /home/yourname/directory1/
cp /home/yourname/file1 /home/yourname/directory1/
To change the name of the file as well as moving it:
mv /home/yourname/file1 /home/yourname/directory1/file2
To change the name of the file to something else, but keeping it in the same directory:
mv /home/yourname/file1 file2