how to change directory in bash shell 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: bash script change directory run a command
#!/bin/sh
cd "$1" && shift && "$@"