Questions tagged [mv]

Tag for questions about the terminal command "mv" to move and rename files.

Use mv SOURCE DESTINATION, to move the file(s) or folder(s) SOURCE to the DESTINATION.

If SOURCE and DESTINATION are both of the same type (file or folder), the command also renames the object.

For full manual type in a terminal window: man mv

247 questions
21
votes
4 answers

Why does moving some files in a folder take longer than moving the whole folder?

I have millions of images on my ubuntu cloud server. When I move a complete folder containing 12 million images using mv command, it happens almost instantaneously. However, when I mv only images(not the folder) then it takes some time. Is there a…
sankit
  • 321
12
votes
3 answers

mv command - don't overwrite files

I want to mv files and not overwrite duplicates. The -b switch only makes a single backup file, whereas I may have many. According to the mv man page: The backup suffix is '~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control…
BeMy Friend
  • 1,093
6
votes
3 answers

Move to directory that was no directory

I did this: mv couchpotato_11-08-2016_09-35.tar.gz ~/AtoMiC-ToolKit/backup mv transmission-daemon_11-08-2016_09-36.tar.gz ~/AtoMiC-ToolKit/backup mv sickrage_11-08-2016_09-35.tar.gz ~/AtoMiC-ToolKit/backup But backup was no directory or file, and…
4
votes
1 answer

mv: cannot create directory permission denied

:/usr/share/blender/datafiles$ mv "/home/bob/Documents/uncompressed files/filmic-blender-master" /usr/share/blender/datafiles mv: cannot create directory '/usr/share/blender/datafiles/filmic-blender-master': Permission denied So basically... I…
HAL9000
  • 43
4
votes
2 answers

How to update timestamp when moving files

In source directory, I have multiple files which all has dot (.) to it. So, when I move I can give like below mv *.* /destination/ But my issue is I want to give timestamp to all the files in destination folder for identification.
3
votes
1 answer

why this mv command works

I found this mv command but I can't find why it works: sudo mv /usr/share/dbus-1 /services/org.freedesktop.Notification.service{,.disabled} I can't find this syntax in the man page.
3
votes
2 answers

-i option not working for mv

The man for the mv command says there's a -i option to prompt a y/n before the command is executed, but it's not working for me. Each time I use mv -i, the file is automatically renamed without issuing a prompt. Any idea what's going on here?
2
votes
2 answers

Where did my files go after using mv?

I used this command: mv Records/1711*D.org /media/geek/SimEx/5\ Data/17-18/Journal/ (this is the command I copy-pasted from the terminal. This session is still live on my terminal.) This executed without any errors: geek@simulator:~$ mv…
Inspired_Blue
  • 601
  • 2
  • 9
  • 26
1
vote
1 answer

Where does `mv myfolder ..myfolder` move my file to?

I am inside /home/me/examplefolder and tried to move the folder myfolder to /home/me like this: root@linuxserver:/home/me/examplefolder# mv myfolder/ ..myfolder The folder myfolder dissapeared, but I cant find it now, where is it?
Black
  • 801
1
vote
1 answer

How to move some file to a subdirectory?

I have - |Books |--LaTeX |--LaTeX_wikibook.pdf |--LaTex_advanced.pdf |--vim_wikibook.pdf |--vimLaTeX.pdf I want - |Books |--LaTeX | |--LaTeX_wikibook.pdf | |--LaTex_advanced.pdf | |--vimLaTeX.pdf …
alhelal
  • 2,621
1
vote
2 answers

Move folders that have an apostophe in their name

Hoping this is an easy one - can't quite get it to work. I need to move all folders, and content (no sub folder) that have at least one apostrophe/quote in their name. Any pointers?
pee2pee
  • 151
1
vote
0 answers

move error mv: cannot stat 'foldername': Input/output error

I try to move a folder to another one, but this error appears: mv: cannot stat 'Anim': Input/output error I even can not open that directory in file manager. Why this happens?
SirSaleh
  • 540
  • 5
  • 23
1
vote
1 answer

Moved a file with mv, now I can' t find it anymore!

This is the command I used! sudo mv '/home/alex/Desktop/elementaryos-0.4-stable-amd64.20160921.iso' Computer I can't find it anymore, I wanted it to put it on Computer to make sure that UnetBootin can see it, but didn't succeed..
1
vote
3 answers

How do I undo a folder move

I was trying to move around some files and got a result I didn't want to. How would I undo sudo mv tmp/* usr/local/bin?
Aaron
  • 117
  • 1
  • 1
  • 7
0
votes
1 answer

File lost using mv

Went to directory where 7z file was located. Used this command mv file.7z /Home I was logged in as root to get to the directory where the file was located and launched the command as root. Now I can't find the file anywhere. Searched Home folder…
1
2