Re: bash, delete the content of a directory
thanks it's working
On May 25, 8:11 am, SiKing <nos...@noway.invalid> wrote:
> di0rz` wrote:
> > i am looking for a tip to delete the content of a directory without
> > deleting the actual directory with bash
>
> $ man rm
>
> Try:
> $ rm -rf <directory>/*
> $ rm -rf <directory>/.* # if you also want to hit dot-files
>
> Or is there something that I missed?
>
> --
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GE d+(-) s+: a@ C+ ULAHS++$ P- L+>++ E--- W++ N++ o !K w--(+) O- M?>+ V? PS+
> PE+(++) Y+ PGP- t+ 5 X R !tv b+ DI(+) D G e++ h---- r+++@ y++++
> ------END GEEK CODE BLOCK------
|