shell type使用

type command >/dev/null 2>dev>null && command

type检查command是内部指令还是外部指令。

如果true就执行command否则就不执行command,

你可能感兴趣的:(shell type使用)