3 ms·
What is there to get wrong in your flattening dir example? I'd mv the internal dir as some other name to outside say dir2, them rm rf outer and mv the dir2. Unl
by donkeybeer 10mo ago
What is there to get wrong in your flattening dir example? I'd mv the internal dir as some other name to outside say dir2, them rm rf outer and mv the dir2. Unless there is something wrong in this approach.
I would agree with the rest, I always have to look up find and xargs syntax.
- 20k 10mo agoIf you make a typo, it'll go wrong. This is something that file managers fundamentally do not suffer from when trying to do that operation
- bot403 10mo agoYou've never mis-dragged something in the GUI or had a flaky mouse button which lets up randomly while you're dragging which left your folder "somewhere" that you now have to find?
- muwtyhg 10mo agoCtrl-Z will un-move that file or folder,.
- lavp 10mo ago`rm` is a destructive operation, but you can always alias it to move it to a trash folder. File managers have nowhere near the flexibility available in the terminal.