command to go back to previous directory code example
Example 1: command prompt cd back
cd ..\ -> To go back one level
cd ..\..\ -> To go back two levels
Example 2: linux command to go to the previous directory
cd - #go to the previous directory