Questions tagged [move]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
120 views

Moving files and renaming using a portion of directory structure and a portion of current filename

So here's current path: ../CAMERA3/serialnum/2016-12-19/001/dav/07/07.02.53-07.03.14[M][0@0][0].dav here end goal: ../CAMERA3/2016-12-19_07.02.53-07.03.14.dav So I'm basically trying to figure out ...
0
votes
2answers
822 views

Move Files from Directory up one level

I have a filestructure with several subfolders where I'd like to search for all subfolder containing a certain string ("sub*") and then move all of the files in these found folders up one level from ...
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/...
11
votes
3answers
6k views

Is mv atomic on my fs?

How can I check if mv is atomic on my fs (ext4)? The OS is Red Hat Enterprise Linux Server release 6.8. In general, how can I check this? I have looked around, and didn't find if my OS is standard ...
1
vote
2answers
283 views

How can I move a ZFS pool to a child pool?

I have created a pool in zfs using: zpool create data001 mirror /dev/sda /dev/sdb but in hindsight I wanted to create zpool create data/001 mirror /dev/sda /dev/sdb None of the rename/move ...
1
vote
1answer
4k views

Find all tar.gz files and move them to a one level down directory

I have tar.gz files accessible from ./parent/subfolder/tar_file_folder/*tar.gz And I want to find them and move them into the ./parent/ directory, therefore one level up. However, there are several ...
1
vote
1answer
912 views

Changing home directory path with usermod doesn't work

When I try to use this command (as root) # usermod -d /media/erez -m erez I get usermod: user erez is currently used by process <number> Lot of examples on this issue but none of them ...
1
vote
1answer
149 views

Move files several directories up for several directories with similar layout

I have a directory with the following layout (the layout in Directory 1 is repeated in every other Directory <num>): Parent directory Directory 1 some directory another ...
1
vote
2answers
248 views

Nautilus-script to move file into same name directory

How can I create a Nautilus script that moves a the selected file into a new folder with the same name? My starting point: /home/user/123 here 123 is a file with no extension My goal here is to ...
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 ...
0
votes
1answer
192 views

How shall I rsync changes in directory structure without actually recopying

I had the folder structure as below ./a/b/c_file synced to the destination ./a/b/c_file Now I changed the structure in source as ./a/d/e/c_file. But rsync seems to be delete the old directory ...
0
votes
1answer
394 views

How to move (image) files to other directories based on files' dates

I have a directory (currdir) with 24000 images on a centos/cpanel server. I want to split this directory by moving images from this directory into other directories (or sub-directories inside currdir) ...
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 ...
2
votes
1answer
114 views

Is it possible somehow to tell if a laptop is moved in a bash or python script?

I'm trying to figure out if there's a way to use a bash or python script to tell if my laptop gets moved. I had the idea of using wifi signal strength to do it, but the problem with that is that you ...
2
votes
0answers
613 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....
1
vote
2answers
426 views

Find and move directory to a new directory based on name [duplicate]

I would like to move all the folders contained in the folder "/example" named e.g. "*_jony" to a new directory call "/jony". I have try several way without success! It would be great to have some ...
-1
votes
1answer
490 views

Why can't I move a file into an NTFS directory mounted RW?

There are two OSes on my PC : Debian8.1 and Win7. The Win7 was mounted on /media/root/1610D6B410D699D7 when Debian8.1 was loaded. I then tried to move a Debian iso without success. Why can't I move ...
2
votes
2answers
1k views

How to move files to files with same name, but different extension

I have a folder A with many small files. In the parent folder there are many folders with other files in them. now in folder A there are files that have the same name as in the other folders, but they ...
1
vote
4answers
1k views

How to move all files (excluding sub-directories) from one directory to another?

How do you move all the files (excluding sub-directories) from one directory to another. I'd prefer if the solution used just basic shell scripting.
0
votes
1answer
839 views

Renaming Duplicate Files with Flatten Folders Command

This command will move the contents of one or more folders to the parent folder. But if there are identical file names with the same extension then there will be files that are overwritten during the ...
13
votes
3answers
2k views

Can the filesystem become inconsistent if interrupted when moving a file?

I have two folders on the same partition (EXT2) If I mv folder1/file folder2 and some interruption occur (e.g. power failure) could the file system ever end up being inconsistent? Isn't the mv ...
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 ...
0
votes
2answers
7k views

Moving files from folder to folder on a remote server using SSH without downloading those to local computer

I have a remote Debian test server to which I connect via SSH (Putty client). I wanted to move a lot of files on a remote machine to another folder: remote: /mnt/a/ -> remote: /mnt/b/c/ RESULT@...
1
vote
1answer
94 views

How do I merge (without copying) two directories? [duplicate]

I have: $ find 1 2 -printf '%i %p\n' 40011805 1 40011450 1/t 40011923 1/a 40014006 1/a/e 40011217 1/a/q 40011806 2 40011458 2/y 40011924 2/a 40013989 2/a/e 40013945 2/a/w I want: <inode> <...
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: ...
0
votes
2answers
1k views

Midnight Commander moves files enormously long

I have an QNAP TS-210 NAS and it seems, that there's a Debian Linux on board. I've installed Midnight Commander there and have been using it successfully for years. Today I spotted something weird. I ...
1
vote
0answers
413 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
920 views

LVM move logical volumes across physical volumes without data loss

I wonder how can I move my logical volumes from current physical volume to another without data loss. I have read mans but I haven't found this information there. I would be grateful for any help. ...
7
votes
7answers
8k views

Linux command line. Move all files and directories in directory, except some files and directories

I have a folder A which has files and directories, I want to move all those files and directories to another folder B, except file, file2, directory, and directory2. How can this be done?
1
vote
1answer
24k views

How do I properly allow user jenkins to write to a specific directory under user minecraft home directory?

I am using Jenkins, I want to copy a file from the Jenkins directory in to the minecraft user directory, but I am not sure how to go about this, as when I run cp build/versions/*.info /home/*...
3
votes
1answer
236 views

move the search content to different directory

I am on Oracle Solaris. I am using: grep "searchstring" filename.* above command returns my search result. Now I want to move the all the files in above search result (all the files not the search ...
5
votes
1answer
3k views

Rename files with spaces in a BusyBox shell

I'm trying to rename some files on my Synology Diskstation via SSH. The available shell is the BusyBox built-in shell: BusyBox v1.16.1 (2013-04-16 20:13:10 CST) built-in shell (ash) The move command ...
1
vote
1answer
502 views

lost directory cannot find it with testdisk

I was moving a directory on my parents computer using a teamviewer session. The session responds slow and somehow, when I was moving the directory (location: /sdb/synchronisatie/nel/) something went ...
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 ...
21
votes
2answers
2k views

How do I move all files output from a command?

I have this grep command to find files without the word Attachments in them. grep -L -- Attachments * I want to move all the files that are output from that command. How do I do that in bash? Do I ...