Dave's Brain

Browse - Computer Tips - Do you know any Bash directory changing tricks?

Date: 2007Mar13
OS: Linux
Keywords: previous, directory, folder, bash

Q. Do you know any Bash directory changing tricks?

A. Why yes:

cd Change to your home directory
cd ~user Change to user's home directory
cd - Change to the previous directory
pushd (dir) Change to another directory
popd Undo the last pushd

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.