15 lines
282 B
Bash
Executable File
15 lines
282 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -x
|
|
|
|
type "$1" 2>/dev/null
|
|
type -t "$1" 2>/dev/null
|
|
type -a "$1" 2>/dev/null
|
|
type -P "$1" 2>/dev/null
|
|
which -a "$1" 2>/dev/null
|
|
which "$1" \
|
|
&& file -b "$(which "$1")" \
|
|
&& file -L "$(which "$1")"
|
|
type -a "$1" 2>/dev/null
|
|
command -v "$1"
|
|
whereis "$1"
|