how to navigate to a folder in cmd code example

Example 1: command prompt cd back

cd ..\       -> To go back one level
cd ..\..\    -> To go back two levels

Example 2: move into folder cmd

The cd command can be used to change into a subdirectory,

cd subdirectory_name						-> To go one level into subdir
cd subdirectory_name/subsubdirectory_name	-> To go two levels into subdir

move back into the parent directory,

cd ..\       -> To go back one level
cd ..\..\    -> To go back two levels

move to previos directory,

cd -

move all the way back to the root directory or move to any
given directory

cd C:/Give_Path_to_directory

Example 3: how to move to directories in command prompt

cd Desktop/myDirectory

Example 4: how to navigate to a folder in cmd windows 10

Just use "open [path_to_dir]" in Unix or "start [path_to_dir]" in Windows as:
open .	#Open current directdory in Unix
start . #Open current directory in Windows

Example 5: move to folder in command line windows

# move to a directory:
cd myFolder

# move out of a directory
cd ..

# move to another hard disk
# in this example i want to move to drive F, just type:
f:
# and hit enter

Tags:

Go Example