command to go back to previous directory in ubuntu code example Example: linux command to go to the previous directory cd - #go to the previous directory