[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: restructure folders



On 13/1/22 15:31, sp007@caiway.net wrote:
I have this foldertree tree:

/dir1/dirA/dirB
/dir2/dir*

I want the foldertree to become:

/dirA/DirB
/dir*


Is this possible on the commandline?
Any idea is welcome

Thanks!







Question - why do you have these directories in /

If they really are in /   would this do what you want

cd /dir1
mv dirA  /

cd /dir2
mv dir*  /

I'd suggest you would be safer doing this in mc (a cli file manager) so you can see where you are sending the files


--
All the best

Keith Bainbridge

keithrbaugroups@gmail.com


Reply to: