Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  $ pushd .
  $ cd /
Why not just

  $ pushd /
?

Also, it's not linux-specific, but bash-specific.



It's not Linux or Bash specific, pushd and popd work on Windows too, and work on network shares, e.g.

  c:\> pushd \\server\share
  z:\>


It's still provided by your shell, not the OS. Windows' cmd.exe just happens to provide pushd/popd, same as bash, zshell, etc.


     $ pushd /
oh, neat. Thanks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: