csh(bashとshで使用)の「type」に対応するものは何ですか?

csh(bashとshで使用)の「type」に対応するものは何ですか?

命令が組み込まれているのか、それとも別のプログラムがあるのか​​を確認したいと思います。そしてsh私はbash以下を使います:

$ type <command>

何と同じですかcsh

ベストアンサー1

cshには「which」があります(shエイリアスを検出できません)。

私の環境でtcshを使う

~ (101) alias
cd      cd !* ; ls
q       exit
v       cursor; xhost + ;resize -s 40 80; unsetenv TERMCAP; screen
xl      xlock -nolock -random
y       Xearth; run xclock -geometry +1100+0; run nice xload -geometry +950+0 -update 3
~ (102) which y
y:       aliased to Xearth; run xclock -geometry +1100+0; run nice xload -geometry +950+0 -update 3
~ (103) type which
type: Command not found.
~ (104) which which
which: shell built-in command.
~ (105) which ls
/bin/ls
~ (106) 

おすすめ記事