Suppose I've typed
cd Documents/dir1/
I want to remove only dir1 from that input so that I get
cd Documents/
This has been asked in in remove part of path, but I couldn't find what I was looking for.
Suppose I've typed
cd Documents/dir1/
I want to remove only dir1 from that input so that I get
cd Documents/
This has been asked in in remove part of path, but I couldn't find what I was looking for.