save path as variable bash code example Example: bash how to define a path path_to_file="/path/to/file" echo "$path_to_file"