• @[email protected]
      link
      fedilink
      English
      61 month ago

      pushd and popd are also pretty neat in that they allow you to change directories using a stack; particularly useful as part of that is that using pushd without any arguments will pop the directory on top of the stack and move you there, while putting your previous directory on top of the stack. When you’re working across directories where you need to move around within each directory, it can be really handy.

    • @apex32
      link
      English
      11 month ago

      Nice!

      Also cd without any parameters takes you to your home directory.

    • @EtherWhack
      link
      English
      01 month ago

      ‘cd …’ goes up a level

      • @Passerby6497
        link
        English
        11 month ago

        2 dots goes up a level, 3 dots is a syntax error:

        bash: cd: …: No such file or directory