Quick one liner bash function to navigate parent directories quickly

up () { for i in $(seq 1 $1) ; do cd  ..; pushd +1 ; done; }
— if you like the popd and pushd way ..

up () { for i in $(seq 1 $1) ; do cd  ..; done; }
— otherwise ..

1 thought on “Quick one liner bash function to navigate parent directories quickly”