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


Groups > linux.debian.user > #243944

Re: restructure folders

Path csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Keith Bainbridge <keithrbaugroups@gmail.com>
Newsgroups linux.debian.user
Subject Re: restructure folders
Date Thu, 13 Jan 2022 06:00:01 +0100
Message-ID <DF0nn-2xp-1@gated-at.bofh.it> (permalink)
References <DF0dH-2tc-3@gated-at.bofh.it>
X-Original-To debian-user@lists.debian.org
X-Mailbox-Line From debian-user-request@lists.debian.org Thu Jan 13 04:54:41 2022
Old-Return-Path <keithrbaugroups@gmail.com>
X-Amavis-Spam-Status No, score=-6.2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, GMAIL=1, LDO_WHITELIST=-5, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Gm-Message-State AOAM531gSZqQO+3b7zgghev1hLbeAbEBL51ao/pLN4hDfxgGg/IsAHJz V5lU28DA1xsO/zwEuky86vcsvN1zvje7UQ==
X-Google-SMTP-Source ABdhPJxw/ZQAl8UJn/d+ynSi/iiiqgj0eCmZgfKLFqSKp732AdE0hYGbD4zJEaox5vvs4p/v6dUsug==
X-Received by 2002:a63:94:: with SMTP id 142mr2537753pga.154.1642049664661; Wed, 12 Jan 2022 20:54:24 -0800 (PST)
MIME-Version 1.0
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:98.0) Gecko/20100101 Thunderbird/98.0a1
Content-Language en-US
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Mailing-List <debian-user@lists.debian.org> archive/latest/784736
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/f34ca604-c844-dc2c-f30a-b9f43e03d026@gmail.com
Approved robomod@news.nic.it
Lines 43
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 13 Jan 2022 15:54:18 +1100
X-Original-Message-ID <f34ca604-c844-dc2c-f30a-b9f43e03d026@gmail.com>
X-Original-References <20220113053125.151a106d@ryzen>
Xref csiph.com linux.debian.user:243944

Show key headers only | 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