terminal.cab

All commands

type

Topic: Shell and scripts

Shell builtin: type

Tells what a command name stands for.

Package: core-shell

Usage

type [-afptP] name [name ...]

Description

Tell for each NAME what the shell runs for it: an alias, a keyword, a function, a builtin, or a program file and where that file is.

Options in the simulator

Examples

From the lesson Getting help
type ls cd
ls is /usr/bin/ls
cd is a shell builtin

Try it in the terminal

From the command of the day: type and which
type cd
cd is a shell builtin
type ls
ls is /usr/bin/ls
which ls
/usr/bin/ls

Try it in the terminal

Where you learn it

Lessons

Command of the day

All commands