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.