Answers for "get current directory of script sh"

7

get current directory shell

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

get script directory bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Posted by: Guest on February-09-2021

Code answers related to "get current directory of script sh"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language