ls executable path command code example Example: get first directory in path environment variable echo ${PATH%%:*}