Questions tagged [mv]

mv is the Unix command to rename or move a file or directory.

mv is the Unix command to rename or move a file or directory.

Syntax:

mv - move (rename) files

Examples:

mv /my/dir /my/other/dir

References:

Related commands

625 questions
-1
votes
2 answers

Moving .png files with mv and wildcards error

I've got a folder full of thousands of pictures. I want to move all of the .png files back one directory.. I tried mv -i *.png ../ But get the following error: mv: invalid option -- 'p' Try `mv --help' for more information. Any advice?
-1
votes
2 answers

mv command in aix

when i use mv command in aix to move a file to a destination directory ,it should fail if another file with the same name exists in that destination. But what happens now is it replaces the file in destination. Pls help.Is there any other command…
user1929905
  • 389
  • 3
  • 9
  • 25
-2
votes
1 answer

My mv command is showing no such file or directory when renaming a file

In the below code I am renaming a file with a date field addition to it.but the error says no such file or directory.its doing the moving operation instead of renaming it. Thanks. #!bin/bash cd /some/directory/name LIST=$(ls) for FILE in…
Overlord
  • 1
  • 2
-2
votes
1 answer

I copied a file on unix from say directory 1 to 2, and now im trying to rename said file but i keep getting an error ''no such file or directory''

enter image description hereI had initially copied the file from my school directory to tmp, but now I cant find it in /tmp and I'm really confused cause it showed me that the file was copied
-2
votes
2 answers

Howto rename bunch of filenames which are calculated

I want rename bunch of filenames. The rename is based on the calculation of the filename. That means the actual filename + 3600 = new filename. Important is that the underscore in the pid files have to stay. Thanks in advance! My system is Debian…
Goeks
  • 51
  • 7
-2
votes
1 answer

How to move files to a sub-directory based on a text file

I have a directory with around 2000 files in it. ~/ -File 1.pdf -File2.pdf -Another file 1.pdf -File3.pdf -Someother file.docx -Yeanother.pdf I have mapped each file with the account it relates to. This mapping is in a CSV file. File Name &…
-2
votes
1 answer

Finding files due to misuse linux command mv

how to find my files due to misuse mv? for example, I change folder /var/lib/a And I typed, "sudo mv /var/lib/b/* ./*" then, I couldn't find my files nowhere how can I find my files?
mong
  • 1
  • 1
-2
votes
1 answer

Mac script with mv command caused some files to disappear from machine

I created a very simple script (terminal command) but for some reason files disappeared after mv. All the files with "mv: rename ........ : No such file or directory" disappeared... but on the other hand other files were moved correctly (although…
-2
votes
2 answers

Rename and transform filename via Bash

I am newbie, so pls dont swear me. I need to rename and transform files from old to the new name via shell script (bash) in linux. I have a files like that now_360p_2014-05-19-13.21.14.266-FET_0.mp4, but i need to get this…
NZT
  • 53
  • 5
1 2 3
41
42