Intro to the CLI What Is a Command

Learning objective: By the end of this lesson, students will understand the different types of commands used in the command line, including built-in commands, executable programs, functions, and aliases.

This question is harder to answer than you might initially hope, but in short, a command is anything you can execute directly from the command line.

What makes this difficult to define is that there are four main types of commands you might use:

The varying types of commands add some complexity to working with them. For example, the man command won’t be able to tell you anything about functions or aliases. This can make the behaviors of some commands feel inconsistent.

Another thing that may make commands feel inconsistent is also one of the things that makes the command line feel powerful - anyone can write a command. But, because anyone can write commands, they may not consistently follow the best possible practices, such as writing help documentation for that command.