Questions tagged [mv]

mv is a UNIX command to move a file to another directory or rename it.

157 questions
12
votes
2 answers

What happened when I "mv *"? No errors were shown and now only one folder is left. Why?

The command executed was "mv space *" in a folder with 14 GB of data. mv * du -hs is the same so where has the 14 GB of data gone? What have I done?
8
votes
1 answer

mv: inter-device move makes moving a directory to a directory with same name a different operation?

Given: # mv /mnt/hard/git-src/ /usr/portage/distfiles/ mv: inter-device move failed: /mnt/hard/git-src/' to /usr/portage/distfiles/git-src'; unable to remove target: Is a directory And cd /tmp; mkdir a b; mdkir a/c b/c; touch a/c/1…
kagali-san
  • 1,724
3
votes
2 answers

mv deleting files at the end instead of one by one

I am moving a folder recursively between two filesystems using mv -v. It seems like deletions happen at the end (in order to make mv transactional ?). I don't have enough space to hold two copies of the same folder, is there a way to force mv to…
Paperino
  • 176
  • 7
0
votes
1 answer

How do I move all files except those that begin with a "."?

I'm using bash shell on Mac 10.9.5. Within a certain directory, how do I move all non-hidden files -- taht is, all those that don't start witih a "."? Thanks, - Dave
Dave
  • 23
0
votes
1 answer

Using `mv` to rename a file in nested directory

Suppose I want to rename a file several directories down. I do, mv dirA/dirB/dirC/name.suf dirA/dirB/dirC/newname.suf Is there any easier way to type this? One option would be cd dirA/dirB/dirC mv name.suf newname.suf cd - Anything better?
0
votes
1 answer

Want to move file over network (not copy)

I would like to move file on network [Linux]. This is not working: mv {file} user@machine:/ How can I do this? And I prefer not using scp command to first copy and delete.
S R
  • 195
0
votes
1 answer

Added files and folders gone after MV run

I ran mv /folder1/folder2/folder3/ /folderA/FolderB/FolderC/. Then I added more files and folders to /folder1/folder2/folder3/ during the move. It seems all of the files I added after I started the mv command are gone. I thought they would either be…