Questions tagged [move]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

UbuntuDDE 20.04 on Dell File Manager does not have Move Files option

Is there a way to modify my files options in UbuntuDDE 20.04 so I do not need to have a second window open on screen to move the files? I have found that if I wish to move something from Downloads to ...
0
votes
2answers
35 views

Why ubuntu uses “move to trash” instead of delete?

Does anyone know why in the GUI of Ubuntu(and perhaps the other Linux distributions as well) use the term "move to trash" instead of delete? I want to know what was the historic event that leads to ...
0
votes
0answers
22 views

How does my shell know when the current working directory has been moved?

If I am in a directory /foo, and I move (from a different session) /foo to /bar. If I then go back to the session in /foo and run ls, the files are still there, and I can see new files if they are ...
1
vote
1answer
15 views

file disappears while moving because I typed the wrong directory

While moving a file, I typed $ mv aaa.txt directory instead of $ mv aaa.txt ../directory and now I don't know where aaa.txt has gone. How can I find it?
0
votes
0answers
15 views

Command-line “editor-based” bulk renamer that supports taking a list of files?

There's a few command-line bulk rename utilities such as qmv that allow you to bulk rename files by: First you run qmv (or similar program) with some arguments to select which source files/folders ...
2
votes
2answers
761 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 ...
0
votes
2answers
49 views

How to verify that files in A folder are also in B folder

I use my synology DS1515+ and DSM 6.2.2. First of all, please refer to the picture as below; First, I download some video files. Examples of filenames are as above. And second step is that copying ...
0
votes
1answer
17 views

Move daily backup directories (made by rsync) to another directory in the same partition

I have a daily rsync script backing up my data on an external hard drive at /mnt/X (root of hard drive). I am using --link-dest to use hard links and avoid duplicating data. I need to move all my ...
0
votes
2answers
34 views

Copy a file containing date in the file name to a folder for that date

I looked for similar questions, but it was hard to get a clear answer in my case. I use my synology DS1515+ and DSM 6.2.2. First of all, I have been made daily folder containing a date using script ...
2
votes
3answers
69 views

Copy a file containing a date in the file name to a folder for that date

I'm newbie in stack overflow. I need your help. Thank you for your reply in advance. I looked for similar questions, but it was hard to get a clear answer in my case. I use my synology DS1515+ and ...
0
votes
0answers
24 views

Find and Add timestamp to the filename prefix only to files in same Directory

I'm using the following script to find all the PDFs sitting in directory Dir1 to add the timestamp to the filename prefix and drop it in same Directory. Seems to be working well the only thing is if ...
1
vote
2answers
115 views

Organize directory b and its subdirectories files equal as directory a without copying or moving from directory a

I'm looking for some way to organize the files contained in directory b to make its structure equal to that of directory a (which contains the same files as b, just arranged in a different way), ...
2
votes
4answers
44 views

How to move all files with names starting with a string from a list?

I have a file strings.txt with a list of strings: GCA_001677475.1 GCA_003410275.1 GCA_002310615.1 GCA_000007405.1 GCA_000219515.3 And I have many files in a directory with names like: GCA_000005845....
0
votes
1answer
55 views

Sort files based on similarity of file names

I have a directory structure which contains many files. I want to find similar files recursively and sort them based on their names. The easy part: find all files named f*.ext and move them to a ...
0
votes
0answers
81 views

How to intercept mouse position as xbindkeys do with click?

I know xbindkeys can intercept mouse click events, like put a hook in mouse click. In the same way, I'm looking for a tool to hook the mouse position, to intercept a specific position, as X=0 or Y>...
0
votes
0answers
17 views

Why my scroll wheel in middle of mouse can't work?

tmux -V tmux 2.3 Open an vim in tmux,edit a long text. I find that my mouse cursor can't be move by left-click nor middle wheel in mouse,i scroll the wheel with my finger,the cursor can't move. I ...
0
votes
1answer
19 views

Ask what to do when dragging & dropping a file in file managers other than Dolphin

Dolphin file manager is showing a list of options when dragging & dropping a file (copy/move/create link). Can the same options be made available in other file managers?
0
votes
1answer
191 views

Flattening directory and renaming files incrementally (MacOS)

Looking to flatten the directory (with duplicate child file names) while renaming all files, keeping duplicates OR appending all file names with an incrementing number (incrementing # + name would be ...
0
votes
2answers
1k 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 ...
0
votes
1answer
31 views

Placing File Families into Folders

A large number of font files (2728 files) are flattened in to a single folder. I want to move all files belonging to the same font family into a folder where the folder name is the complete name of ...
0
votes
0answers
53 views

How do I --move— the contents of 1 folder (with subfolders) to another folder (with the same subfolder names as the source)?

I think this is best explained with an example. Example: /mnt/mystorage/source => folder1 => file11.txt => folder2 => file21.txt /mnt/mystorage/destination =&...
1
vote
0answers
72 views

Where can I find the .desktop files for the “Copy To” and “Move To” service menus for Dolphin file browser

I am using KDE Neon. I want to create modified versions of the "Move To" and "Copy To" services in the Dolphin file browser. I want to find the built-in services, copy their .desktop files, and edit ...
0
votes
1answer
110 views

Move files in folders by list in file

I have a .txt file that has a list of folders: old_folder_path1,new_folder_path1 old_folder_path2,new_folder_path2 old_folder_path3,new_folder_path3 I would like to run a shell command that moves ...
0
votes
2answers
72 views

How to move all files with extension to a subdirectory?

I have a directories in /media/home/Seagate Expansion Drive/Downloads/Java Spring Gurus/folder1 .../folder2 .../foldern Inside every directory I have a *.mp4 file and different types of additional ...
0
votes
0answers
30 views

How to copy every N file when serialization is not consistent

I have a directory containing 101695 files ranging from img001.jpg to img101693.jpg and I want to move every 100th image to another directory. I have found some similar posts such as How to copy every ...
2
votes
3answers
2k 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*...
1
vote
3answers
4k views

move multiple directories in one directory - recursively

I have a directory which contains multiple directories including subdirectories too. I want to move some of them to a single one at the same time (with one command) Example Main Directory Sub1 ...
2
votes
1answer
56 views

Had an extra > character when moving a file, now the folder is missing

I tried moving a file in Linux from one directory to another and accidentally had an extra > character. mv /u01/app/oracle/product/12.1.0.2/db_1/dbs/>test2.dbf /u01/shared_data/oradata/TEST/test....
13
votes
3answers
9k 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
0answers
16 views

Move (mv) file that starts with a hyphen (-) [duplicate]

I have a file called -my-file-name.txt. I'm trying to move it using the mv command, however it fails because the hyphen in the name is acting like an option. mv -my-file-name.txt /some/new/folder ...
0
votes
4answers
854 views

Recursively moving contents of directory

I wanted to recursively move files from a folder (Pictures) to another (Picturesnew). The "Pictures" Folder had many subfolders and and hence I used this command after following up the posts here. ...
3
votes
1answer
65 views

Find files then move them and rename them at the same time?

Currently I use three steps to gzip some static assets and then use s3cmd to an S3 bucket (technically it's a Digital Ocean Spaces bucket). Here's what I do: $ find . -type f -name '*.css' | xargs -I{...
0
votes
1answer
45 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
3answers
463 views

replace everything and move word to end position

maybe my question should answered in two ways but I hope it could be done with in one "sed": I have the following lines, with different IDs: ID1_TRINITY_DN120587_c0_g1::TRINITY_DN120587_c0_g1_i1::...
1
vote
2answers
64 views

How to recursively move one file type but only when another file type is also present?

In my directory tree, some subfolders contain both *.flac and *.mp3 files, but other subfolders contain only *.mp3 files. I'd like to move all of the *.mp3 files to another destination (a different ...
0
votes
1answer
59 views

Copy or move large file with transient name till the file is completely transfered to destination in linux

I am trying to copy/move a large file (15 GB) to a directory in Linux and want to have a dependency on that event. Now lets say I have a file named abc.txt, and I am running below command: mv /usr/...
0
votes
2answers
2k 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 ...
0
votes
1answer
111 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 ...
2
votes
3answers
153 views

Moving files to directories named after the first 6 digits in the file name

I've got thousands of raw photos (.nef) and relative settings (same filename but .xmp extension) in a single directory on a QNAP nas. My goal is to automate the creation of subdirs named like yyyy-mm ...
0
votes
2answers
32 views

Move contents of all sub subdirectories up into just their subdirectories

The problem I am facing is that I have a directory that contains thousands of subdirectories, each of those subdirectories contain more subdirectories, and inside of all of those are images. What I ...
20
votes
1answer
10k views

How can I move all `marked` files to another directory in ranger?

When I select multiple files within ranger (using <Space> or V), how do I move these selected files to another directory? I've tried to use dd and pp, but this only moves the file that's ...
0
votes
0answers
27 views

Batch moving a custom set of images with Ranger? [duplicate]

This is a question for the Ranger (file manager) Let's say that I have a directory with five files.. for i in $(seq 1 5); do touch "$i.jpg"; done; mkdir subdir How would I move 1.jpg, and 4.jpg, ...
36
votes
4answers
12k views

Wrong mv command. Where did my files go? [duplicate]

I used the command mv folder_name .... I thought by using .. twice, it would move it back two folders. Unfortunately my files disappeared. I need to recover them.
0
votes
2answers
2k 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 ...
0
votes
2answers
39 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
2answers
49 views

Moving A Specified Number Of Files From One Directory To Another in Linux Redhat [closed]

Does anyone actually know how to move X files at a time from one directory to another? Every 'example' on this page displays an error and is useless. I can only move fifty (50) files at a time, then '...
0
votes
1answer
978 views

Moving file with wildcard and add timestamp to the file name

I need to move a file to an archive folder, and add a timestamp in front of the file name. mv /dev/DataStage/myProject/source/TEST/MyFile_*.csv /dev/DataStage/myProject/Archive/TEST/MyFile_*.csv ...
1
vote
3answers
175 views

Moving folders with a specific keyword in the name to a new folder

I want to move all my FLAC music folders to a new folder called lossless. Currently the FLAC folders are inside a folder with lossy formats such as MP3 and AAC. I want to filter the folders with "...
1
vote
1answer
526 views

Move directory structure and preserve symlinks [duplicate]

I'm trying to work around a makefile issue where libraries are installed in the wrong place. Someone else wrote the makefile and it is not easy to fix. I'm trying to move the libraries after they have ...
0
votes
1answer
437 views

Find from a file list of and move in Unix

I have a list file with names of files, i want read one file name from the list at a time and look for it under a directory structure with multiple sub folders and then once found move it into a diff ...