• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Go back two directories

CU

Platinum Member
I just found out you can go back two directories in bash by typing "...". Seems like a strange command. Why have a command that goes back two directories, why not something like cd .. -n when n is the number of directories to go back.
 
Not recognized by bash (or as an argument to cd) on Ubuntu 9.04.

I would expect this to go up the directory tree, not back, similar to 'cd ..'.

As for why you would want something like this as opposed to a more cumbersome syntax that works for an arbitrary number of directories, the answer would seem pretty simple. You often want to go up one or two directories (and therefore want a simple command to do so), but rarely or never want to go up, say, 15. When jumping way up the directory tree, I just enter a path rather than construct some 'cd ../../../../../../../../../' monstrosity and hope I counted correctly.
 
... is not an argument to cd. It is just a command. This works on SLED 10 and 11. man ... returns nothing for it though.
 
... is not an argument to cd. It is just a command. This works on SLED 10 and 11. man ... returns nothing for it though.

Not a command supported by my version of bash, as stated.

If it's a bash built-in, you'll need to look for it in man bash.
 
Back
Top