Read more

Working on the Linux command line: How to efficiently navigate up

Deleted user #4117
September 17, 2021Software engineer

With cd .. you can navigate one directory up from the one you are at now. If you use that a lot, consider some handy aliases.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Add the following lines to your ~/.bashrc:

alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."

you can add even more aliases, but I usually loose track after too many levels and just jump to the directly directly, e.g. using its absolute path or its bookmark (see this card).

Example usage:

>pwd
/home/judith
>cd Projects/makandra-cards/
./Projects/makandra-cards/
>pwd
/home/judith/Projects/makandra-cards
>...
>pwd
/home/judith

This will be most helpful if you are forced to work in deeply nested directories (e.g. projects with such a structure).

Posted to makandra dev (2021-09-17 19:17)