Answers for "linux bash file path variable"

1

bash save current path to variable

# Saves the current path to the variable "your_variable":
your_variable=$(pwd)

# Go to the path inside the variable:
cd $your_variable
Posted by: Guest on October-16-2021
0

bash how to define a path

path_to_file="/path/to/file"

echo "$path_to_file"
Posted by: Guest on November-26-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language