$ typels ls is aliased to `ls -p --color=auto' $ type -a ls ls is aliased to `ls -p --color=auto' ls is /usr/bin/ls $ type -a pwd pwd is a shell builtin pwd is /usr/bin/pwd $ type -a hostname hostname is /usr/bin/hostname
# 显示命令路径 $ type -p cd $ type -P cd /usr/bin/cd $ type -p pwd hostname systemctl /usr/bin/hostname /usr/bin/systemctl $ type -P pwd hostname systemctl /usr/bin/pwd /usr/bin/hostname /usr/bin/systemctl
# 显示命令类型 $ type -t lscd hostname if alias builtin file keyword