[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils
Subject:    rm tree proposal, safer alternative to rm -rf
From:       M P <kloby10 () gmail ! com>
Date:       2021-11-30 10:02:09
Message-ID: CACa-hsEXSaU1aMKhnfj1cKBBUv8DBRrL8z3ruhDA8=YsMSXxaQ () mail ! gmail ! com
[Download RAW message or body]

Hello there,

would it be more user friendly alternative to add parameter equivalent to
"tree -d" to rm command ?
It will spill out short directory tree with interactive prompt to confirm
rm command.

default can list only like 10 dirs and some parameter can list everything

rm -rt /home
Removing content of these dirs:
/home
├── firstdir
│   │   ├── tst
│   │   ├── other
│   │   │   ├── sub1
│   │   │   └── sub
│   │   ├── desktop
│   │   │   ├── foo
│   │   │   ├── abc
│   │   │   └── bar
and more ...
Confirm ?

rm -r -t=full /home
Removing content of these dirs:
/home
├── firstdir
│   │   ├── tst
│   │   ├── other
│   │   │   ├── sub1
│   │   │   └── sub
│   │   ├── desktop
│   │   │   ├── foo
│   │   │   ├── abc
│   │   │   └── bar
│   │   └── more
│   └── more
└── more
Confirm ?

I'm not developer - just sysadmin scared of creating rm -rf horror story
myself.

Thank you
Best regards
Martin P.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic