how to get previous directory in ubuntu code example Example: how to step back in the path in temrinal cd ~ or cd -