terminal mac change directory code example Example 1: how to step back in the path in temrinal cd ~ or cd - Example 2: how to change directory in terminal mac cd <FolderName>