Questions tagged [move]

The tag has no usage guidance.

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
2answers
521 views

find + xargs - copy/move files from one subdir to another

My folder structure is like this: /volume1 /photoTest /folderA /@eaDir /eaDir_tmp /folderB /@eaDir /eaDir_tmp /folder with space /@eaDir /eaDir_tmp ...
2
votes
0answers
614 views

Move lxc container to a different host

Is it possible to move a lxc container from one lxc host to a different one? Here are the specs of the machines: Current LXC host: Gentoo: Linux 3.7.10-gentoo #1 SMP x86_64 New LXC host: CentOS 6....
2
votes
1answer
578 views

expanding boot, moving LUKS root

GPT > Partition2 > LUKS > btrfs I need some additional space for my boot volume, so far I did: Shrink my btrfs volume by 250MB. btrfs resize -250M / Shrink the LUKS root volume cryptsetup ...
1
vote
0answers
169 views

How can I copy/move the same x files from one directory to another?

I have multiple directories with a few thousand files each. Each directory contains files with the same names, but with different extensions. I would like to move x files each from these sets of ...
1
vote
1answer
53 views

find matching file and change dirname path

I need to find a very efficient way of moving a file of matching -mtime from one directory tree to another directory, maintaining the same subdirectory path where it doesn't exist yet. eg. move /dirA/...
1
vote
1answer
57 views

how to track the time taken for a move operation from one folder to another in linux

how to track the time taken for a move operation from one folder to another in linux I have been performing a move operation like the sample below. I would like to know how much time in seconds does ...
1
vote
0answers
606 views

using left mouse button to move window can cause freeze (XFCE4/Ubuntu 15.10)

I use xfce4 under Ubuntu 15.10. Fairly often some action with my mouse causes the cursor to change into the closed hand icon and my session freezes in a useless state. When this happens the cursor ...
1
vote
0answers
46 views

Bulk move files back to where they came from

What happened I'm in quite a mess right now after having clamscan scan over my windows part of the system and move all found files (which apparently includes PUA's) to a directory on another drive. ...
1
vote
0answers
34 views

Will booting the system get affected if root partition moved, though boot partition is separate

I need to move the root partition to the right after shrinking it. I have separate boot partition as seen below. The free space I want to allocate to boot partition so as to increase it's size. I've ...
1
vote
0answers
1k views

Why is moving file within an ext4 partition so slow?

The short question is why is a move operation, moving within the same ext4 partition taking longer than a copy of the same files from a different drive? The longer description of the scenario: I ...
1
vote
0answers
414 views

Properly mount a windows share to move files on the mountpoint

This question resulted from a question of mine on stackexchange. I mount a windows share with mount -t cifs -o username=username,password=password,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=...
1
vote
2answers
404 views

Can't overwrite a file by moving another over it

I have file /some/foo which is a plain text file. I can edit it with vim and I can cat something else to it. But whenever I try to automate the editing process with sed, it says sed: cannot move '/...
0
votes
1answer
40 views

Move Files Recursively but only if they are not open by another process

I want to modify the script text below, to change the file permissions, owner and move it, only if the file is not open by another process. cd /mnt/usbdrive/DVR sudo chown 777 -R /mnt/usbdrive sudo ...
0
votes
1answer
52 views

How to move physical disks content (rsnapshot content in there) to another physical disk?

Situation: simple linux system, with external removable usb media (rdx), single primary partition with ext4 filesystem on them for backups. Using some external usb disk media (rdx disks) for ...
0
votes
2answers
31 views

What's a convenient way to move files and subdirs “up a subdir” with possible name clash?

I've some files and directories within the directory /var/foo/bar/baz. Now, I want to move all of them up into /var/foo/bar, and get rid of baz. Easy, right? cd /var/foo/bar mv baz/* . rmdir baz (I'...
0
votes
3answers
1k views

how to move files with multiple patterns to specific directory, bash?

Need move files with multiple, defined patterns, like: Z_*ana_bwk_na_N*.png Z_*ana_bwk_dwda*.png Z_*ana_bwkman_dwdna* Z_*ana_bwkman_dwdc* Z_*EDZW*_nwv01*_p00_na_N*WV11.png Z_*EDZW*_nwv01*_p00_nh_N*...
0
votes
0answers
69 views

How to move files to a folder per day

I have a folder that contains a lot of photos. I'd like to move them on a more practictal structure, with a folder per day. The date is extracted from the filename (e.g. ...
0
votes
1answer
44 views

Are there any shortcuts to jump up/down directly across the manually-typed lines of a bash terminal?

Consider that we write on terminal cat file0.csv, and then get 1000 lines of code. After that, we write cat file1.csv and then we get other 1000 lines of code. And so forth till cat file5.csv. ...
0
votes
1answer
166 views

I moved root partition by error

I'm on a VPS with CentOS 6.5 I was trying to install ASSP so by error i did this command mv -f /* /usr/share/assp and then I can't do anything when I try something like: [/]# dir -bash: /bin/ls: ...