change directory in linux code example

Example 1: linux change directory

// change directory in terminal
cd folder_name/subfolder_name

// go up one directory level
cd ..

// back to previous directory
cd -

// return to home directory
cd

Example 2: navigate to a directory linux

/* File & Directory Commands
To navigate into the root directory, use */ "cd /" /*
To navigate to your home directory, use */ "cd" /*or*/ "cd ~" /*
To navigate up one directory level, use*/ "cd .." /*
To navigate to the previous directory (or back), use */ "cd -"

Example 3: change directory in linux

# if u want to change folder please use this command
#use pwd command to see where the location is 
#then use "cd" to move to other folder
cd <folder name u want to move>
ex => cd Documents/python/
#if u dont have linux then use "git bash"