How to check command type?

067

To check the type of a command in Linux, you can use the type command followed by the name of the command you want to check. Here’s the syntax:

type <command_name>

For example, to check the type of the cd command, you would run:

type cd

This will provide information about how the command is interpreted by the shell, such as whether it is a built-in command, an alias, a function, or an executable file.

0 Comments

no data
Be the first to share your comment!