Answers for "get current working directory in bash script"

9

bash get current path

echo $PWD
Posted by: Guest on May-30-2020
0

present working directory in shell script

#!/bin/bash
echo "Script executed from: ${PWD}"

BASEDIR=$(dirname $0)
echo "Script location: ${BASEDIR}"
Posted by: Guest on March-17-2021

Code answers related to "get current working directory in bash script"

Python Answers by Framework

Browse Popular Code Answers by Language