change directory shell script code example
Example 1: linux change directory
cd folder_name/subfolder_name
cd ..
cd -
cd
Example 2: navigate to a directory linux
"cd /" "cd" "cd ~" "cd .." "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"
Example 4: how to open directory in linux using command
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