Questions tagged [move]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
0answers
19 views

Move files with special characters in the name [duplicate]

how can I move files with special characters in the name, like in the picture: ls -hl total 612K -rw-r--r-- 1 root 987 0 Mar 30 12:12 -----------------------] -rw-r--r-- 1 root ...
0
votes
1answer
31 views

FreeBSD move folders from a list

I have a .txt file that has a list of folders I would like to move from one directory to another. I have seen many posts on this, but none have worked. Mostly because those are using GNU versions of ...
0
votes
0answers
14 views

Server Rescue - Resizing root partition with non adjacent free space

I'm on rescue mode of my VPS server. I need to resize my / partition as it is only 20 GB I managed to resize my /home partition (2) But now the free space is below it. As you can see Model: ATA ...
0
votes
1answer
34 views

Restructure a folder hierarchy

Excuse me if this question has been asked/answered before, but my search has not provided the answer I needed. I have my teaching materials structured as follows: Year/semester/Course/.... Instead of ...
0
votes
1answer
77 views

Deleted files with WinSCP

I selected some files and wanted to move them to another folder. All I did was this, using WinSCP: Right click, Move to... and all files were deleted. So the last folder had additional *. * in it. I ...
0
votes
1answer
46 views

Scanning subfolders with BASH Script ${ROOTPATH}/${subdir}

Doing my best to make this work but have little knowledge of scripting. This script should be scanning my specified directory and all subdirs scanning video assets moving any corrupted/errored files ...
0
votes
3answers
50 views

Move multiple files to subdirectories in linux

I have a directory structure like this; dir ├── dirA │ └── file1 │ └── subdir └── dirB └── file2 └── subdir I need to move file1 to dirA/subdir and file2 to dirB/subdir. How can I do it ...
0
votes
1answer
39 views

How to search subdirectories that has only 1 file inside and move the file up one step to the parent directory

So I have multiple subdirectories in which many of them have only 1 file and the name of the filename is the same as the subdirectory name. DIR A --DIR B ----B.zip --DIR C ----C2.zip ----C3.zip --DIR ...
0
votes
2answers
36 views

Move files up one directory

How can I move the entire folder up one level in the directory structure ? Using rsync or mv does not quite work. rsync /var/www/html/wordpress/ /var/www/html/ skipping directory . mv /var/www/html/...
0
votes
1answer
32 views

Move Files From Root Directory to another users Home Directory

I have downloaded files from another server to root directory called public_html, Now I am looking for move all files and folders from public_html to /home/userb/public_html so I am trying to move it ...
0
votes
1answer
40 views

Move specific file types in subfolder to destination folder but without loosing subfolder structure

first of all I have very limited knowledge in Linux but I am always trying my best. I also have already automated a lot of things in my Unraid Server and RPi by using Cronjobs and scripts, but now I ...
0
votes
1answer
40 views

Rename files in any deep subfolder like the parent folder and move after to a central folder

I have a problem where I need to rename just certain files after the parent folder and afterwards move these to a central folder. Is there a way to do this? I would like to run this on a Synology NAS. ...
-2
votes
1answer
88 views

Move every 500 files in new directory [closed]

I have a directory that contains 10,665 jpeg files. I want to move 500 files to a new directory, and 500 to the next directory, etc. The largest files must be moved first: 500-1 contains the 500 ...
1
vote
1answer
55 views

Efficiently turn a directory tree into a new filesystem on zfs

I "inherited" management of a system, whose "/opt" (and some other large directory trees) are stored in the root file system. My wish now is to create a new filesystem in the rpool ...
0
votes
0answers
19 views

Move a specific number of files from a folder to another one (by oldest) [duplicate]

I am currently using this shell to move 25 files to another folder automatically. But It moves files by alphabetical order, that's my main concern. I would like the oldest files to be moved first ...
0
votes
2answers
30 views

Move files from one folder to another but only if filename and size are exact match

I would like to move files from one folder to another but only if the destination file already exists and the sizes match. If it's not an exact filename and size match, I want to skip the move. ...
-7
votes
1answer
292 views

UNIX - Move the file dog from MAMMALS to SHAPE specify using relative path

As I am new to unix, can somebody tell me how to move a file please. I got an error message as missing destination file operand. mv dog/mammals/shape
1
vote
1answer
103 views

Moving files with " and * caused error

I'm having trouble with moving files in a bash script. I've been trying different solutions that I've found here, on the same problem, but can't find anything that works.. my last attempt was adding ...
0
votes
1answer
100 views

Move files with wildcard?

Ohhhh, I've read a few pages and questions, but I just can't comprehend/fully understand it... jdir0="$@" # /home/tor/subbackup/teest2/jjj mv "$jdir0/subs/*.srt" /home/tor/...
0
votes
0answers
32 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 ...
1
vote
2answers
256 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
24 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
16 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
1answer
29 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
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
2answers
119 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
75 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 ...
1
vote
2answers
116 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
152 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
75 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
1answer
26 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
678 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
0answers
59 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 =&...
0
votes
1answer
34 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 ...
1
vote
0answers
162 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
215 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
76 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
31 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
1answer
59 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....
1
vote
0answers
17 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 ...
3
votes
1answer
73 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
62 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
4answers
2k 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. ...
1
vote
2answers
75 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
94 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
1answer
157 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
39 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 ...
0
votes
0answers
39 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, ...
0
votes
2answers
54 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
2k 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 ...