Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc Subject: Re: shell command for deleting all subdirectories Date: 5 Jul 2025 18:12:57 GMT Lines: 27 Message-ID: References: <104b5ls$1g366$1@dont-email.me> <104b5pv$1ffih$1@dont-email.me> <104ba9i$1h1b5$1@dont-email.me> <104blo6$1jp9r$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net wQBPP6SaeaYTz58fUR9ZyAs6ldaKZkQGo9NHohR+m00uINZHVc Cancel-Lock: sha1:yrJfwRN+lM5sG6G1K4FE2XWyfjw= sha256:954nalXIJvyfD/jRPyYSUE4rLBe0E+xqKuYhn0HnV6o= User-Agent: Pan/0.160 (Toresk; ) Xref: csiph.com comp.os.linux.misc:69371 On Sat, 5 Jul 2025 17:00:54 -0000 (UTC), Jason H wrote: > On 05/07/2025 14:45, Bill Ubuntu wrote: >>On 7/5/25 06:36, Charlie Gibbs wrote: >>> On 2025-07-05, The Natural Philosopher wrote: >>> >>>> On 05/07/2025 13:26, bilsch01 wrote: >>>> >>>>> what is linux shell command to delete all subdirectories in Music? >>>> >>>> cd ~/Music rm - r * >>> >>> Oops, an extra space slipped in there. The correct command is: >>> >>> rm -r * >>> >> it worked good Thanks > > And be absolutely positively sure you are where you think you are (via > pwd) > when running that! I write from bitter experience. > > -- We had a hapless programmer who tried to free up space on a AIX box by running the equivalent of 'rm -rf /usr/bin' . Partially in his defense the directory has a different name in AIX.