What is dirname 0 and usage examples

佚名 / 2023-07-21 / 原文

What is dirname 0 and usage examples

# https://bytexd.com/what-is-dirname-0-and-usage-examples/

#!/bin/bash
Directory=$(cd `dirname $0` && pwp -P)
echo $Directory