Questions tagged [mv]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
135 views

How do we move a working directory to a different location?

I am trying to move the files of my already installed Ipython to a new destination folder. I have used the following command and I get the error, can someone help: asudipta@asudipta-Inspiron-1525:~/...
1
vote
2answers
7k views

“mv” versus “cp” in a bash script [closed]

I am attempting to make a script that will be able to load up some settings and files to a board. Basically I will plus a flash drive into the board click on the script. The script will then copy/...
4
votes
2answers
11k views

How to delete to trash via terminal (with mv command)? [duplicate]

I would like to know how can I delete a file and/or move it to trash with mv command? I know where the trash located is, then I tried with this commands to move it to trash: mv somefile /home/...
1
vote
3answers
254 views

Wildcard: return source path

I'm trying to rename every access.log.gz file (note: exact filename, not "beginning with" or "containing") found in /home/*/logs to date-access.log.gz in the same folder. for file in /home/*/logs/...
0
votes
1answer
1k views

How to retrieve file lost by the 'move' command [duplicate]

I was moving a tar file from the disk. Unfortunately, I misspelled the path, and I lost the file Ubuntu. sudo mv /media/creator/sumeeth/software/apache-tomee-1.7.0-plus.tar.gz /~
1
vote
1answer
141 views

Is there any advanced MOVE command with GUI-kinda interface

While downloading a file,in command-line, we have WGET which shows us the progress of the download. Similarly, is there any command which gives us visual status of the process(move).
2
votes
2answers
2k views

What happens when you force quit a `mv` directory operation between two disks?

Another way to word the question is... What happens when you mv a directory between two disks? Does it move one file after the other, or does it copy all files to destination, then then delete ...
3
votes
2answers
2k views

How do I move a subfolder with contents to a different source folder without copying?

I know it's been asked a million times, but I can't find the answer to what I'm trying to do specifically. Here's the directory structure: Main Folder1 | |-Subfolder 1 |-Subfolder 2 ...
3
votes
2answers
5k views

Find and exec in found folder

I'm trying to find files containing *.nef and move them to a subdirectory name NEF of the folder in which the file is found. I've started testing with the following command, but this always copies to ...
0
votes
1answer
287 views

Error while moving information from my SD-card, how can I fix it?

i have a 32GB Kingston microSD. i have the following message when i try to move a dir: Error while moving. There was an error getting information about the files in the folder “0”. Error when ...
14
votes
3answers
30k views

mv files with | xargs

I'm just trying to move a bunch of files (not symlinks) out of my /etc/apache/sites-enabled folder into the /etc/apache/sites-available folder with the following: /etc/apache2/sites-enabled$ find . -...
2
votes
3answers
261 views

Accidentally messed up my filesystem wtih mv - Grub Rescue>

Let's start with saying that I'm a very inexperienced not-so-poweruser. Last night I was trying to move every file in a directory to another location, but accidentally did this: mv stuff /* /home/...
2
votes
1answer
13k views

Good shell script to move a file to another location?

I'm trying to write a shell scrip to move a file to a a different location when it's found. And when it's not found to move a file from that different location to its location. This is basically my ...
0
votes
2answers
4k views

Cannot move a file using sudo mv

I want to move a downloaded folder (called 'Viva' to the themes folder under /usr/share/themes/. When I type: sudo mv /desktop/Viva /usr/share/themes it tells me it can't find the /desktop/Viva ...
14
votes
3answers
3k views

Revert moving root directory recursively

I have an Ubuntu Desktop used as a Server. This morning I accidentally moved all my root to ../ root@server:/tmp/UPS/up/upsilon# mv /* ../ mv: impossibile spostare "/dev" in "../dev": Dispositivo o ...
155
votes
5answers
308k views

mv: Directory not empty

I want to move content of a directory within another directory with the same folders. Here's an example: I have ./backup wich have the directories base and test. Now I want to move these directories ...
0
votes
1answer
87 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 ...
152
votes
12answers
451k views

How to move multiple files at once to a specific destination directory?

I got a bunch of files in some directory (along with many other files) that I want to move. Luckily, all the files I want to move contain a certain identifier in their names, so I can ls | grep ...