`sudo rm -rf /tmp/workdir` starts with `sudo rm -rf /`
`git reset libs` starts with `git reset` which will wipe your staging area
`docker-compose rm -f db` starts with `docker-compose rm -f` which will remove all stopped containers (and their logs)
Most commands just tend to do something very broad with no arguments, and the fact that paths start with bigger folders and go down to files doesn't help either. No GUI tool would ask you to confirm before you type in the path, the way shell commands tend to.