I want to check if a command is builtin or a separate program.
bash I use:
$ type <command>
What is the equivalent in
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
csh has "which" (which cannot detect sh aliases)
In my environment using 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)