In the terminal, one can use the tab key to help auto-complete typing out a directory or file name. However, if I make a mistake and mistype the beginning of the directory and "tab it out", I end up having to use backspace and re-type it in. Is there a shortcut key to undo the auto-completion in the terminal?
EDIT FOR CLARIFICATION
To expand on what I've said in a comment, I was wondering if there was a shortcut to undo to the last directory. So, currently ctrl+shift+- seems to work well except it un-does individual letters.
For example, if I have the following directory setup:
Documents
--> d1something
--> d2something
And I want to go to "d2something" but accidentally type "cd d1", it will autofill to:
cd Documents/d1something/
Then, by using ctrl+shift+- it will then be:
cd Documents/d1something
Again:
cd Documents/d1
Again:
cd Documents
What I was wondering if there's a shortcut to get from cd Documents/d1something/
back to cd Documents
(first and last step). If not, the ctrl+shift+- will work fine.