![]() The second does what an Option-drag does, or what happens when you drag a file to a different disk or volume. The first does the same as dragging a file to a new location on the same hard disk. There are two commands for moving and copying: mv and cp. The same is the case from the command line. (You may know that you can copy a file in the Finder, even on the same hard disk, by holding down the Option key when you drag it.) However, if you drag a file from your Desktop to an external hard disk, you’ll see that the file remains in its original location this file has been copied. Open a new Terminal window to confirm and view the changes you’ve just made. The file is no longer on the Desktop, and is found only in the Documents folder. Hit Ctrl + O to confirm making those changes to the file, and then hit Ctrl + X to exit the nano editor. If you’re in the Finder, and you drag a file from, say, your Desktop to your Documents folder, or any other folder on the same disk or volume, you move the file. The mv command moves the file or folder from its old location and puts it in the new location. The difference between copying and moving files In the Terminal app on your Mac, use the mv command to move files or folders from one location to another on the same computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |