I was running some simple commands in bash, and one of the commands I ran deleted my current working directory (nothing destructive, I just used git to checkout a branch where that directory doesn't exist).
Now I'm stuck in a deleted directory and cd doesn't seem to want to let me out:
$ cd .. bash: cd: ..: No such file or directory
What's the easiest way to get out of this directory and back to its parent?
Note that the directory I am in is stored on an NTFS partition, which might explain why
cd .. is giving an error, when that behavior doesn't seem to be the norm when executing cd from a deleted directory in Linux.
(Presumably retyping the absolute directory path and giving that to cd will work here, but the path the the parent directory is really long, and I'm lazy. Is there a better way to get to the parent directory than retyping its lengthy absolute path?)