Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #243944

Re: restructure folders

From Keith Bainbridge <keithrbaugroups@gmail.com>
Newsgroups linux.debian.user
Subject Re: restructure folders
Date 2022-01-13 06:00 +0100
Message-ID <DF0nn-2xp-1@gated-at.bofh.it> (permalink)
References <DF0dH-2tc-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

restructure folders "sp007@caiway.net" <sp007@caiway.net> - 2022-01-13 05:50 +0100
  Re: restructure folders Keith Bainbridge <keithrbaugroups@gmail.com> - 2022-01-13 06:00 +0100
  Re: restructure folders Charles Curley <charlescurley@charlescurley.com> - 2022-01-13 07:10 +0100

csiph-web