Dumb thing I did in the teminal:
~/workspace$ rm -rf workspace
no such file or directory
~/workspace$ rm -rf cd ~
half typed the command again thinking i mistyped the name then realised im in that folder and instictively typed the command to get to home
@mian
Also, what I meant to say earlier, is that I would have hit ctrl + c when I realized I wasn't in the right directory, and only after that I would have changed directory.