how to change directory in cmd in mac code example Example 1: how to step back in the path in temrinal cd ~ or cd - Example 2: go up directory terminal how to move up in terminal