Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mv]

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

1
vote
3answers
821 views

How to move a file into a subfolder of the same name using terminal

I have a file named 123 and one main folder also named 123 which contains a subfolder of the same name. How can I move file 123 into the folder 123 since both the file and main folder have the same ...
1
vote
2answers
58 views

How do I move one directory to another in Ubuntu

For example, how would I move a directory called "menu" into the "data" directory? Also, I am using Ubuntu and I am new to all of this so I am unsure.
1
vote
1answer
109 views

Why do I get 'X' and 'Y' are the same file when using mv, even though they are clearly NOT the same file?

I am attempting to move a file from one directory to another on a CIFS mounted file system using the command: mv /mnt/development/Backup/NagiosServer/latest/* /mnt/development/Backup/NagiosServer/...
0
votes
1answer
93 views

Copy file from Pi to USB

So I am trying to copy a file from my home pi directory to USB on my Pi zero as root using sudo mv command and it still says permission denied. I am a root user. How do I copy this file if I don't ...
0
votes
1answer
124 views

How do I remove/overwrite “phantom” files?

I was moving a pile of MP3s from my Music folder to an external HDD (it is fat32, if that matters), when I realized that I should not have selected "apply to all" when I told it to "Overwrite" for one ...
0
votes
1answer
117 views

Why does mv work so slowly renaming files in my SD card?

The SD card is in a phone which is tethered to the computer. % pwd /run/user/1000/gvfs/mtp:host=%5Busb%3A003%2C007%5D/SanDisk SD card % date && mv f759fdradio_ga_ga.mp3 radio_ga_ga.mp3 &&...
0
votes
1answer
101 views

files disappear when I run mv command

Dears, I use the below command to move files mv *.gz directoryname but directory name has spell mistake and the file with directory name has been generated with unknown format. And I lost my file. ...
0
votes
1answer
523 views

Find-move-replace files from /folder1 to /folder1/sub-folders

Situation: folder1 have about 2000 files, folder2 have over 300 sub-folders and each sub-folder have 500 files. What I'm asking is to move/replace files from /folder1 to /folder2/sub-folders, but only ...
0
votes
1answer
84 views

Moving screenshots from one folder to another instantly

I am hosting a gaming site and once in a while the server automatically creates a screenshot in the servers folder. Unfortunately it is NOT possible to configure in the server settings where it puts ...
1
vote
0answers
236 views

ls without parameters - No such File or Directory

while creating a backup of a Windows PC I encountered an odd File. I first discovered it while copying the parent backup where exactly the same error came up. Note that I masked all [A-Za-z0-9] with ...
1
vote
0answers
47 views

Recover data from external hdd that was moved

I have moved some files from my external HDD (NTFS system), then had some problems with PC where I had to format it. Is there any way to recover data that I moved from the HDD two days ago?
1
vote
0answers
1k views

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?
1
vote
0answers
308 views

Moved bin directory and other folders

I have done the typical newbie error and have moved important bash folders by mistake using the command; sudo mv /* ../../../../../programmingajax.com/ This has then gone and moved lots of important ...
1
vote
0answers
505 views

How to use mv to move a file between two partitions

I have two partitions of an external drive mounted on computer A. A's "media" folder is then mounted using sshfs on computer B. On B I can move files between the two partitions in the file manager. I ...
0
votes
0answers
37 views

Missing file after mv

Hope you can help me with this issue. I did the following: mv filename .foldername after that the file is gone and a hidden folder foldername was created .foldername when cd .foldername I got a ...
0
votes
0answers
35 views

move folder from mounted cifs to ntfs take ages

I'm running on Ubuntu 18.04 and have a network drive mounted via cifs. When I try to copy a dir from that network drive the copying took ages (ubuntu says 596.523 hours). Neither mv (shell) nor copy (...
0
votes
0answers
26 views

Windows Ubuntu Subsystem mv folder disappeared but works with file

I am using Windows Ubuntu Subsystem 18.04. The command I run is mv venv ../d/ and the folder can neither be found in current directory nor in d. This command is double checked from .bash_history. ...
0
votes
0answers
39 views

mv command - lost files - directory turned into a file

I am starting to learn about linux commands, and today i did something, that I can't find the solution nowhere ! I tried to move a file "test.txt" to the "Subfolder2", to do so, I entered the ...
0
votes
0answers
95 views

Error accessing a file no such file or directory (I want to rename it)

I am struggling to rename a file, I had a similar issue sometime ago but in that case I wanted to delete, this time I simply want to access it. I have cleared the directory, so only this single file ...
0
votes
0answers
52 views

I ran an mv command and then two of my hard drives on reboot disappeared

This is what I ran: brian@capitalist:~$ cd /media/brian/Matt3TB/WD/Locale/zh_TW.lproj brian@capitalist:/media/brian/Matt3TB/WD/Locale/zh_TW.lproj$ mv Differet/ .Differet When I rebooted two of my ...
0
votes
0answers
346 views

extundelete used after mv command

I needed to move a directory temp/ between sda1 -> sda2 partition to free some space in sda1. Some how I ended up: sda1: the directory temp/ is not shown sda2: no directory moved here. I used ...