Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
1
answers
2103
views
GIT move files from folder to subfolder
I have the following folder structure. ``` Service | -- App1 | --- bin | --- file1 | --- file2 | --App2 | --- bin | --- file1 | --- file2 | --- file3 | --App3 | --- bin | --- file1 | --- file2 ``` I'm looking to move files only from the root of App folders to their corresponding bin folders whilst p...
I have the following folder structure.
Service
|
-- App1
|
--- bin
|
--- file1
|
--- file2
|
--App2
|
--- bin
|
--- file1
|
--- file2
|
--- file3
|
--App3
|
--- bin
|
--- file1
|
--- file2
I'm looking to move files only from the root of App folders to their corresponding bin folders whilst preserving GIT history. So the end result should be:
Service
|
-- App1
|
--- bin
|
--- file1
|
--- file2
|
--App2
|
--- bin
|
--- file1
|
--- file2
|
--- file3
|
--App3
|
--- bin
|
--- file1
|
--- file2
I attempted the following...
#!/bin/bash
dir1="/c/Service"
subs=ls $dir1
for i in $subs; do
git mv $dir1/$i/* $dir1/$i/bin/
done
...but see the following errors:
*fatal: can not move directory into itself*
*fatal: Invalid path '/c': No such file or directory*
Any help appreciated.
Confounder
(131 rep)
Jul 29, 2022, 04:38 PM
• Last activity: May 15, 2025, 12:09 PM
2
votes
1
answers
148
views
removing hidden control characters in filenames
I have a huge number of files spread across a large directory structure that have hidden control characters in their names. `ls` lists them as, e.g.: `'614.7-4-F1-00-090-007-RozvadØ'$'\302\237'' RP1-List1.pdf'` This eventually causes issues with `rsync`. What would be a clever way to rename tho...
I have a huge number of files spread across a large directory structure that have hidden control characters in their names.
ls
lists them as, e.g.:
'614.7-4-F1-00-090-007-RozvadØ'$'\302\237'' RP1-List1.pdf'
This eventually causes issues with rsync
. What would be a clever way to rename those files by removing those characters?
I think find -name '*[^[:print:]]*'
will find all those files. Then sed 's/[^[:print:]]//g'
should hopefully get rid of those so I am trying
find -name '*[^[:print:]]*' -exec sh -c 'mv "$1" "$(echo "$1" | sed s/[^[:print:]]//g)"' _{} \;
but it gives
mv: cannot stat '': No such file or directory
So I think this might be related to the quoting but I no longer have idea how to correct it. Or maybe, this is not even the correct way to do it.
atapaka
(675 rep)
Jun 26, 2024, 02:27 PM
• Last activity: Jun 27, 2024, 08:42 PM
1
votes
3
answers
313
views
I know I can create folders from a list.txt, but can I move files to those folders based on a mapping?
If right now, I only had a bunch of files dumped into a single directory, is there a way that I could move the files into a folder based on a mapping file. For example: | | A | B | | - | - | - | | 1 | File Name | Folder Name | | 2 | abc | 123 | | 3 | def | 456 | | 4 | ghi | 789 | | 5 | jkl | 123 | |...
If right now, I only had a bunch of files dumped into a single directory, is there a way that I could move the files into a folder based on a mapping file. For example:
| | A | B |
| - | - | - |
| 1 | File Name | Folder Name |
| 2 | abc | 123 |
| 3 | def | 456 |
| 4 | ghi | 789 |
| 5 | jkl | 123 |
| 6 | mno | 456 |
is it possible to move file
abc
and jkl
to folder 123
based on this mapping? I'm not familiar with coding; I really just want to know if it's doable.
Thanks in advance!
Nicole
(19 rep)
May 1, 2024, 07:43 PM
• Last activity: May 9, 2024, 11:58 PM
3
votes
4
answers
3751
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](http://www.cyrius.com/debian/kirkwood/qnap/ts-219/). I've installed Midnight Commander there and have been using it successfully for years. Today I spotted something weird. I have to move a large collection of movies (aro...
I have an QNAP TS-210 NAS and it seems, that [there's a Debian Linux on board](http://www.cyrius.com/debian/kirkwood/qnap/ts-219/) . I've installed Midnight Commander there and have been using it successfully for years. Today I spotted something weird.
I have to move a large collection of movies (around 130 GB) from one folder to anther. Movies are split into many subfolders. Whenever I enter any particular folder, select all files in MC and press F6 to move them to destination, everything is fine. But, when I attempt to move entire subfolder (destination has it as well, but files inside are different, so there is not overwrite in any case), process takes very, very long. It actually looks like my NAS would be doing a copy, instead of move of this file.
Is this normal condition? When I'm doing the same operation on Windows, move process always is very, very fast, no matter, if I'm moving entire folder or only its contents.
trejder
(771 rep)
Nov 16, 2014, 07:21 PM
• Last activity: Apr 7, 2024, 10:18 AM
5
votes
2
answers
488
views
Issue expanding variable with multiple wildcards in bash shell script with mv / rename
I wrote a bash shell script for Linux to move files in a static folder according to parameters specified in a data file. I've reduced that script to a minimal reproducible example to demonstrate an issue I'm having with it: ``` #!/bin/bash while IFS=" " read -r fldr matchStr do perlExp=\'s/^/\\/home...
I wrote a bash shell script for Linux to move files in a static folder according to parameters specified in a data file.
I've reduced that script to a minimal reproducible example to demonstrate an issue I'm having with it:
#!/bin/bash
while IFS=" " read -r fldr matchStr
do
perlExp=\'s/^/\\/home\\/test\\/alpha\\/"$fldr"\\//\'
fullmatchStr=testfile\ -\ "$matchStr"\ -\ *.txt
rename --verbose "$perlExp" ${fullmatchStr}
done < test.dat
*(Please note that I originally started out using mv
instead of rename
, and I'm fine with using either command.)*
This script reads test.dat
, which is a text file of the syntax:
folderName matchStr
...
A simple example of this test.dat
file:
test001 *.foo.bar
test002 *.foo.baz
test003 bar.*.baz
***It is essential that wildcards are allowed in this data file and are supported by the script. Also, support for spaces within filenames is required.***
Examples of filenames of files to be moved:
testfile - linux.foo.bar - 10101010 10101010.txt
testfile - unix.foo.bar - 01010101 10101010.txt
testfile - ubuntu.foo.baz - 10101010 01010101.txt
testfile - debian.foo.baz - 10101010 00000000.txt
testfile - bar.linus.baz - 11111111 01010101.txt
Given the above test.dat
file, those files need to be moved, respectively, to these folders:
/home/test/alpha/test001
/home/test/alpha/test001
/home/test/alpha/test002
/home/test/alpha/test002
/home/test/alpha/test003
I read several relevant QAs, including:
- https://unix.stackexchange.com/questions/77007/mv-cannot-stat-no-such-file-or-directory-in-shell-script
- https://stackoverflow.com/questions/8748831/when-do-we-need-curly-braces-around-shell-variables
- https://unix.stackexchange.com/questions/131766/why-does-my-shell-script-choke-on-whitespace-or-other-special-characters
but I'm still not getting the results I desire. No errors are presented, but no files are moved.
How can this piece of code be improved to make it work as desired?
Amazon Dies In Darkness
(281 rep)
Apr 2, 2024, 11:34 AM
• Last activity: Apr 4, 2024, 08:40 AM
1
votes
2
answers
89
views
Batch ogg vorbis transcode
What I'm trying to do is simply make this command ```lang-shell find . -name "*flac" -exec oggenc -q 7 {} \; ``` spit the oggs out into whatever folder that I choose. I've tried just putting `~/vorbis` at the end of the command, but I get a predicate error: ```none find: possible unquoted pattern af...
What I'm trying to do is simply make this command
-shell
find . -name "*flac" -exec oggenc -q 7 {} \;
spit the oggs out into whatever folder that I choose. I've tried just putting ~/vorbis
at the end of the command, but I get a predicate error:
find: possible unquoted pattern after predicate `-execdir'?
I've been through the "find manpage", and I understand that the {}
at the end of -q 7
is there to find flac
files. So this is throwing me for a loop.
Anyone know what I have to add to that command so I can output oggs into chosen folder?
Thanks for reading and helping.
By the way, I did try:
-shell
find . -name "*flac" -exec oggenc -q 7 ~/vorbis {} \;
but that only spit the oggs into the folder with the flacs. Not a ~/vorbis
folder. I'm trying to keep folder name and structure put output it into a folder of my choosing (~/vorbis
). And I 'm not asking for a full script. I'm just simply asking for somebody to explain how I can get what I'm trying to achieve.
Thank you!
h8uthemost
(11 rep)
Jan 3, 2024, 02:47 AM
• Last activity: Jan 11, 2024, 05:26 PM
0
votes
1
answers
152
views
How to move all files whose contents begin with 0?
Here's a command to move all files whose *name* begin with 0 into a folder called zero : mv [0]* zero **Question**: What is a command for moving all files whose *contents* begin with 0 into a folder called zero? Hopefully, there is a short command doing that also. I know that the first character of...
Here's a command to move all files whose *name* begin with 0 into a folder called zero :
mv * zero
**Question**: What is a command for moving all files whose *contents* begin with 0 into a folder called zero?
Hopefully, there is a short command doing that also.
I know that the first character of the contents of a file is given by
head -c 1 filename
.
Sebastien Palcoux
(103 rep)
Nov 7, 2023, 01:40 PM
• Last activity: Nov 8, 2023, 08:20 AM
-2
votes
1
answers
255
views
How to move all mkv files from the root of media folder to own subfolder for each mkv file
How to move all mkv files from the root of the media folder to own subfolder for each mkv file, with the same name as mkv filename beside .mkv extension on the end. Example home/incoming/media/ is the media folder where mkv files reside in the root, files naming examples Ibica.festival.2020.mkv in t...
How to move all mkv files from the root of the media folder to own subfolder for each mkv file,
with the same name as mkv filename beside .mkv extension on the end.
Example home/incoming/media/ is the media folder where mkv files reside in the root,
files naming examples
Ibica.festival.2020.mkv in the root should get folder home/incoming/media/Ibica.festival/Ibica.festival.2020.mkv
I've got around 300 files, some files where with the Chinese names and some where with Russian Cyrillic if that changes situation, at all.
File attribute and dates should be detained in the new folder.
I tried and I had some errors and some success with the command
find . -name ".mkv" -exec sh -c 'mkdir "${1%.}" ; mv "$1" "${1%.*}" ' _ {} \; –
Lots of files where moved some where not, but how would I include subtitles and info files which carry the same name as mkv file like Ibica.festival.2020.mkv srt file would be Ibica.festival.2020.en.srt and the info file would be Ibica.festival.2020.en.info
///media/
/Ibica.festival.2020.mkv
/Ibica.festival.2020.hr.srt
/Ibica.festival.2020.sr.srt
/Ibica.festival.2020.br.srt
/Ibica.festival.2020.info
///media/
/exit festival 2019.mkv
/exit festival 2019.hr.srt
/exit festival 2019.sr.srt
/exit festival 2019.en.srt
/exit festival 2019.info
Should be moved to
///media/
/Ibica.festival.2020/
/Ibica.festival.2020.mkv
/Ibica.festival.2020.hr.srt
/Ibica.festival.2020.sr.srt
/Ibica.festival.2020.br.srt
/Ibica.festival.2020.info
///media/
/exit festival 2019/
/exit festival 2019.mkv
/exit festival 2019.hr.srt
/exit festival 2019.sr.srt
/exit festival 2019.en.srt
/exit festival 2019.info
Loop1
(21 rep)
Oct 16, 2023, 01:56 PM
• Last activity: Oct 19, 2023, 05:48 AM
1
votes
1
answers
358
views
Can't move opened e-mails in Thunderbird
I recently upgraded Thunderbird to version 115.0.1 and since then, the MOVE TO dropdown doesn't work when I am reading an e-mail. I am referring to this option: [![MOVE TO button][1]][1] When I browse my e-mails (without opening the mail itself), and I use this dropdown, the e-mail that is selected...
I recently upgraded Thunderbird to version 115.0.1 and since then, the MOVE TO dropdown doesn't work when I am reading an e-mail.
I am referring to this option:
When I browse my e-mails (without opening the mail itself), and I use this dropdown, the e-mail that is selected will move to the chosen folder just fine. However, when I open a particular e-mail to read, then the functionality breaks down. The dropdown is still there, and I can still select a folder to move the e-mail to, but it doesn't do anything. I looked at the log, and this error is produced when selecting a folder to move the mail into:
> console.error: "An error occurred executing the cmd_moveMessage
> command: [Exception... \"Component returned failure code: 0x80070057
> (NS_ERROR_ILLEGAL_VALUE) [nsIMsgDBView.doCommandWithFolder]\"
> nsresult: \"0x80070057 (NS_ERROR_ILLEGAL_VALUE)\" location: \"JS
> frame :: chrome://messenger/content/mailCommon.js :: cmd_moveMessage
> :: line 167\" data: no]"
I am using POP3.

user
(1075 rep)
Jul 24, 2023, 07:21 AM
• Last activity: Oct 11, 2023, 11:12 AM
0
votes
5
answers
162
views
How can I move all directories below a certain size?
I want to move all directories in the current directory that are below a certain size Here, I've managed to do a selection: ``` for dir in * do if [[ $(du -s "$dir" | awk '{print $1}') -le 50000 ]] then ls -l "$dir" fi done ``` I now figured I should use dirname to get the directory, but somehow it...
I want to move all directories in the current directory that are below a certain size
Here, I've managed to do a selection:
for dir in *
do
if [[ $(du -s "$dir" | awk '{print $1}') -le 50000 ]]
then
ls -l "$dir"
fi
done
I now figured I should use dirname to get the directory, but somehow it complains no matter what I do;)
Do we have a neat way to do this?;)
Jason Hunter
(227 rep)
Oct 9, 2023, 12:13 PM
• Last activity: Oct 10, 2023, 07:05 AM
0
votes
2
answers
80
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 https://unix.stackexchange.com/questions/59089/how-to-copy-every-4th-file-in-a-folder but those assume that the numbe...
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 https://unix.stackexchange.com/questions/59089/how-to-copy-every-4th-file-in-a-folder but those assume that the number of digits in the serial is the same in all files so my range would need to start with img000001.jpg Is there a way to do this or do I need to modify my file names so that they all have the same number of characters in the serial?
sealfab
(173 rep)
Sep 9, 2019, 11:04 AM
• Last activity: Jul 27, 2023, 06:27 AM
1
votes
2
answers
1973
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 '/some/sedGl29Uj': Device or resource busy I tried redirecting `sed`'s output to a temporary file...
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 '/some/sedGl29Uj': Device or resource busy
I tried redirecting sed
's output to a temporary file and cat
, it's OK. But if I try to move the temporary file onto it, it will say
root@localhost:/some # mv tmp foo
mv: Device or resource busy
I'm quite concerned why vim
and cat
can write the file but mv
can't.
Ubuntu 16.04.1 LTS. /some
is a subfolder of /
(root mount point, ext4).
iBug
(3638 rep)
Apr 23, 2017, 02:45 PM
• Last activity: Jun 24, 2023, 03:03 PM
1
votes
0
answers
43
views
eCheck if it's safe to move a directory and replace it with a symlink
Say the directory you want to move has absolute path `DIR`. A case where it is NOT safe: that directory has either - absolute path symlinks to within `DIR` itself. For instance `DIR/link` -> `/PATH/TO/DIR/file`. EDIT: as pointed out in a comment below, this should still be safe. - relative path syml...
Say the directory you want to move has absolute path
DIR
. A case where it is NOT safe: that directory has either
- absolute path symlinks to within DIR
itself. For instance DIR/link
-> /PATH/TO/DIR/file
. EDIT: as pointed out in a comment below, this should still be safe.
- relative path symlinks to outside DIR
. For instance DIR/link
-> ../../other_dir/file
.
Is there a tool that checks whether it's safe to move a directory and replace it with a symlink?
extremeaxe5
(1203 rep)
Jun 9, 2023, 02:42 PM
• Last activity: Jun 9, 2023, 08:17 PM
1
votes
2
answers
748
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) based on image dates. How to make it happen?
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) based on image dates.
How to make it happen?
R.Ta
(11 rep)
Jan 23, 2016, 04:16 PM
• Last activity: May 27, 2023, 11:51 AM
1
votes
0
answers
71
views
Files and directory missing after mv with bash extglob inverse match
Attempted to move all files and directories not ending with `.srt` to the parent directory by using these commands: ``` shopt -s extglob mv !(*.srt) .. ``` Checked dir contents with `ls` and everything looked correct, only `.srt` files remaining: ``` abc.srt xyz.srt 123.srt etc.srt ``` When I went u...
Attempted to move all files and directories not ending with
.srt
to the parent directory by using these commands:
shopt -s extglob
mv !(*.srt) ..
Checked dir contents with ls
and everything looked correct, only .srt
files remaining:
abc.srt xyz.srt 123.srt etc.srt
When I went up a directory to check the contents, the sub-directory I was just in was not there and only about half the files were moved to the parent directory. mv
threw no errors during the operation.
I've tried recursively searching for the missing directory from the root of my system (fd -H 'missingfile' /
) but nothing is showing up.
What happened to my files? Did the pattern matching result in renaming and overwriting instead of the intended move?
analog
(11 rep)
May 17, 2023, 07:50 PM
• Last activity: May 17, 2023, 07:51 PM
3
votes
1
answers
259
views
How would the mouse behave in a mirrored environment?
Sorry if it sounds confusing, but this is not a biology inquiry. I'm planning to switch to Linux, but I have a few questions need answered. If a single monitor is mirrored like described in [this link][1], then will we see the pointer onscreen move similarly to, or contrarily to our physical mouse-h...
Sorry if it sounds confusing, but this is not a biology inquiry. I'm planning to switch to Linux, but I have a few questions need answered. If a single monitor is mirrored like described in this link , then will we see the pointer onscreen move similarly to, or contrarily to our physical mouse-hand movement? In case it is reversed, is there any way to make the mouse move like in normal setups while keeping the screen mirrored?
longtry
(93 rep)
Apr 14, 2023, 06:29 AM
• Last activity: May 4, 2023, 10:07 PM
0
votes
0
answers
983
views
Copying all files and folders of a directory using tar
I am trying to copy my files from ssd to external hdd using linux live boot. The command I'm writing is: `root@ubuntu:/media/ubuntu/4bd92f4b-6b48-4f4a-83ad-9d82d3be488b/home/pegasus# tar cf - Downloads | ( cd /media/ubuntu/Seagate Backup Plus/Downloads; tar xvf -)` But the problems is all directorie...
I am trying to copy my files from ssd to external hdd using linux live boot.
The command I'm writing is:
Files that are getting copied:
root@ubuntu:/media/ubuntu/4bd92f4b-6b48-4f4a-83ad-9d82d3be488b/home/pegasus# tar cf - Downloads | ( cd /media/ubuntu/Seagate Backup Plus/Downloads; tar xvf -)
But the problems is all directories aren't getting copied into the hdd.
And no files of downloads are getting copied.
How can I debug it?
How can I use to copy everything from Download directory of my ssd to external hdd using tar?
Files that should be copied:


Zeshan Ahmed Nobin
(111 rep)
Apr 12, 2023, 07:39 PM
1
votes
2
answers
40
views
How to move every three day file based on the filename to respective folders in bash
I have several files like these: 2020.001.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac 2020.001.03.04.pcc1_TBTZ_TBTZ_1.0-3.0.sac 2020.002.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac 2020.003.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac 2020.004.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac 2020.004.05.06.pcc1_TBTZ_TBTZ_1.0-3.0.sac 2020.005.00.01....
I have several files like these:
2020.001.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.001.03.04.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.002.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.003.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.004.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.004.05.06.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.005.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.006.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
...
2020.366.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
The files are year.day.hour1.hour2... The important parameters are the year and day. The day goes from 001 to 366 (or 365).
What I want is to organize my files like this (folder and files). So create the folder and move the respective files into it:
2020.001.003 - 2020.001.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.001.03.04.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.002.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.003.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.004.006 - 2020.004.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.004.05.06.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.005.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
2020.006.00.01.pcc1_TBTZ_TBTZ_1.0-3.0.sac
and so on until finishing the files in day 366
What I did (which does not work as I want):
for file in *.sac
do
year=
echo "$file" | awk -F"." '{print $1}'
day=echo "$file" | awk -F"." '{print $2}'
dayi=$day
dayf="366"
#
# Moving every three day files
delta=2
x1=$dayi
x2=$(echo "$x1+$delta" | bc)
if [ $x1 -lt $x2 ]
then
echo $x1 $x2
dir=$(echo "$year"."$x1"."$x2")
mkdir $dir
x1=$(( x1+3))
x2=$(( x1+delta))
fi
done
As a result the code is creating folders like:
2020.001.3
2020.002.4
2020.003.5
...
Basically it is creating folders that I do not need. Also I still do not know how to move the files into the folders.
Thanks for your help.
Joana Carvalho
(37 rep)
Mar 21, 2023, 12:31 PM
• Last activity: Mar 22, 2023, 05:24 PM
0
votes
2
answers
192
views
Command to gather all specified text files, rename them, and copy them to a folder
I have thousands of text files called file.txt. Because they all share the same name I cannot move them to the same folder without them overwriting. I need a command that will locate all of the file.txt files that are within thousands of directories and subdirectories, append the full path name to t...
I have thousands of text files called file.txt. Because they all share the same name I cannot move them to the same folder without them overwriting.
I need a command that will locate all of the file.txt files that are within thousands of directories and subdirectories, append the full path name to the end of the file name and then copied to a specified folder leaving the original where it was.
example:
from: file.txt
to: a/123/file.txt
(i know / cant be used in a file name so hyphens or underscores will work, unless there is a visually more appropriate replacement)
Also, the command would need to ignore case as some are file.txt and some are File.txt as well have an optional 'S' on the end (file.txt or files.txt).
During the renaming, I am hoping the path can be appended as is, without changing case as the directory/subdirectory names are randomized (example: a/adgDGeRddsdvvsdGSD/[fF]ile[s].txt
Thanks!
linuxuser24569
(13 rep)
Feb 28, 2023, 02:52 PM
• Last activity: Feb 28, 2023, 10:13 PM
35
votes
2
answers
31710
views
How can I move all `marked` files to another directory in ranger?
When I select multiple files within ranger (using ` ` 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 currently highlighted.
When I select multiple files within ranger (using `
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 currently highlighted.
Matt
(816 rep)
May 23, 2017, 10:34 AM
• Last activity: Feb 21, 2023, 01:44 PM
Showing page 1 of 20 total questions