Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.os.linux.misc > #69362

Re: shell command for deleting all subdirectories

From The Natural Philosopher <tnp@invalid.invalid>
Newsgroups comp.os.linux.misc
Subject Re: shell command for deleting all subdirectories
Date 2025-07-05 14:50 +0100
Organization A little, after lunch
Message-ID <104baj2$1ffih$3@dont-email.me> (permalink)
References <104b5ls$1g366$1@dont-email.me> <104b5pv$1ffih$1@dont-email.me> <104b9pb$1h012$1@dont-email.me>

Show all headers | View raw


On 05/07/2025 14:36, Bill Ubuntu wrote:
> On 7/5/25 05:28, The Natural Philosopher wrote:
>> On 05/07/2025 13:26, bilsch01 wrote:
>>> Hi. I am a windroid but I still have ubuntu partition with working 
>>> Ubu 22.04. I have Rhythmbox for music. I was slightly linux 
>>> conversant years ago, but that's all gone now.
>>> I want to delete all subdirectories in ubuntu Music directory and 
>>> then copy in the entire music collection from my Windows partition.
>>>
>>> MY QUESTION:
>>> what is linux shell command to delete all subdirectories in Music?
>>> TIA
>>> Bill S.
>> cd ~/Music
>> rm - r  *
>>
> 
> for each directory it says: cannot remove because that is a directory

Try it without the error
cd ~/Music
rm -r  *
-- 
“People believe certain stories because everyone important tells them, 
and people tell those stories because everyone important believes them. 
Indeed, when a conventional wisdom is at its fullest strength, one’s 
agreement with that conventional wisdom becomes almost a litmus test of 
one’s suitability to be taken seriously.”

Paul Krugman

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

shell command for deleting all subdirectories bilsch01 <usenet@writer.com> - 2025-07-05 05:26 -0700
  Re: shell command for deleting all subdirectories The Natural Philosopher <tnp@invalid.invalid> - 2025-07-05 13:28 +0100
    Re: shell command for deleting all subdirectories Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-07-05 13:36 +0000
      Re: shell command for deleting all subdirectories Bill Ubuntu <writer@usenet.org> - 2025-07-05 06:45 -0700
        Re: shell command for deleting all subdirectories Jason H <jason_hindle@yahoo.com> - 2025-07-05 17:00 +0000
          Re: shell command for deleting all subdirectories "Carlos E.R." <robin_listas@es.invalid> - 2025-07-05 19:53 +0200
            Re: shell command for deleting all subdirectories Jason H <jason_hindle@yahoo.com> - 2025-07-05 21:48 +0000
              Re: shell command for deleting all subdirectories "Carlos E.R." <robin_listas@es.invalid> - 2025-07-06 01:29 +0200
                Re: shell command for deleting all subdirectories Andy Burns <usenet@andyburns.uk> - 2025-07-06 09:14 +0100
                Re: shell command for deleting all subdirectories "Carlos E.R." <robin_listas@es.invalid> - 2025-07-06 15:31 +0200
            Re: shell command for deleting all subdirectories Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-07-06 01:33 +0000
              Re: shell command for deleting all subdirectories "Carlos E.R." <robin_listas@es.invalid> - 2025-07-06 15:33 +0200
                Re: shell command for deleting all subdirectories Nuno Silva <nunojsilva@invalid.invalid> - 2025-07-06 17:12 +0100
                Re: shell command for deleting all subdirectories "Carlos E.R." <robin_listas@es.invalid> - 2025-07-06 20:24 +0200
                Re: shell command for deleting all subdirectories Richard Kettlewell <invalid@invalid.invalid> - 2025-07-06 19:56 +0100
                Re: shell command for deleting all subdirectories Nuno Silva <nunojsilva@invalid.invalid> - 2025-07-11 18:36 +0100
                Re: shell command for deleting all subdirectories Rich <rich@example.invalid> - 2025-07-06 16:44 +0000
                Re: shell command for deleting all subdirectories Nuno Silva <nunojsilva@invalid.invalid> - 2025-07-06 18:20 +0100
            Re: shell command for deleting all subdirectories Fritz Wuehler <fritz@spamexpire-202507.rodent.frell.theremailer.net> - 2025-07-06 23:57 +0200
              Re: shell command for deleting all subdirectories Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-07-06 23:15 +0000
              Re: shell command for deleting all subdirectories Eric Pozharski <apple.universe@posteo.net> - 2025-07-07 13:16 +0000
          Re: shell command for deleting all subdirectories rbowman <bowman@montana.com> - 2025-07-05 18:12 +0000
          Re: shell command for deleting all subdirectories The Natural Philosopher <tnp@invalid.invalid> - 2025-07-06 09:05 +0100
      Re: shell command for deleting all subdirectories The Natural Philosopher <tnp@invalid.invalid> - 2025-07-05 14:46 +0100
    Re: shell command for deleting all subdirectories Bill Ubuntu <writer@usenet.org> - 2025-07-05 06:36 -0700
      Re: shell command for deleting all subdirectories The Natural Philosopher <tnp@invalid.invalid> - 2025-07-05 14:50 +0100
        Re: shell command for deleting all subdirectories Ralf Fassel <ralfixx@gmx.de> - 2025-07-07 10:47 +0200
          Re: shell command for deleting all subdirectories The Natural Philosopher <tnp@invalid.invalid> - 2025-07-07 09:59 +0100
            Re: shell command for deleting all subdirectories Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-07-07 13:32 +0200
              Re: shell command for deleting all subdirectories The Natural Philosopher <tnp@invalid.invalid> - 2025-07-07 15:00 +0100
                Re: shell command for deleting all subdirectories Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-07-07 16:36 +0200
                Re: shell command for deleting all subdirectories The Natural Philosopher <tnp@invalid.invalid> - 2025-07-07 16:05 +0100
                Re: shell command for deleting all subdirectories Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-07-07 21:53 +0000
  Re: shell command for deleting all subdirectories Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-07-06 01:35 +0000
    Re: shell command for deleting all subdirectories Nuno Silva <nunojsilva@invalid.invalid> - 2025-07-06 03:09 +0100
      Re: shell command for deleting all subdirectories Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-07-06 03:13 +0000

csiph-web