What command would I use to move a file from one file to another?
Let me know please. (I'm sorry one folder to another)
mv /pathto/folder /pathto/whereuwannamove/folder
I assume you mean in a terminal window or on the console.
The quot;mvquot; (move) command is what you need to use. quot;man mvquot; for details on its options, but the short answer is:
mv file /path/to/new/directory
or
mv /path/to/file /path/to/new/directory
or
mv file /path/to/new/directory/newfilename (you can change the name as you move the file)
The mv command is also used to rename a file or directory:
mv oldfilename newfilename
mv oldDirectoryName newDirectoryName
There are a lot of things you can do with it. Read the man page for details.
Thank you |