Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



If 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


You'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?


Ctrl-Z will un-move that file or folder,.


`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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: