Added another entry

This commit is contained in:
Dylan Araps
2018-06-15 16:14:08 +10:00
parent 31289a98f1
commit 6d77c0c7ac

View File

@@ -1117,8 +1117,11 @@ This is an alternative to the `pwd` built-in.
## Check if a program is in the user's PATH. ## Check if a program is in the user's PATH.
```shell ```shell
# Bare. # There are 3 ways to do this and you can use either of
# these in the same way.
type -p executable_name &>/dev/null type -p executable_name &>/dev/null
hash executable_name &>/dev/null
command -v executable_name &>/dev/null
# As a test. # As a test.
if type -p executable_name &>/dev/null; then if type -p executable_name &>/dev/null; then