ArchLUG Linux By Example - www.archlug.org

Download the RSS XML Feed for this site

Subscribe to this channel with Amphetadesk

Subscribe to this channel with RadioUserland

pushd


pushd and popd are very easy ways of going to a directory, doing some stuff there, then returning to the previous directory.

>pwd
/home/gmccreight
>pushd /var/logs
>pwd
/var/logs
#do some things in the /var/log directory
>popd
>pwd
/home/gmccreight

Also check out the alias command. You may have + aliased to pushd and - aliased to popd.


Valid XHTML 1.0! Valid CSS!