Using cd to go up multiple directory levels
Posted
by
Tossrock
on Super User
See other posts from Super User
or by Tossrock
Published on 2012-07-16T19:36:24Z
Indexed on
2012/10/25
23:04 UTC
Read the original article
Hit count: 140
linux
|command-line
I'm dealing with java projects which often result in deeply nested folders (/path/to/project/com/java/lang/whatever, etc) and sometimes want to be able to jump, say, 4 directory levels upwards. Typing cd ../../../.. is a pain, and I don't want to symlink. Is there some flag to cd that lets you go up multiple directory levels (in my head, it would be something like cd -u 4)? Unfortunately I can't find any man page for cd specifically, instead just getting the useless "builtins" page.
© Super User or respective owner