From the course: Learning Zsh

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Builtins and commands

Builtins and commands - Unix Tutorial

From the course: Learning Zsh

Start my 1-month free trial

Builtins and commands

- [Instructor] Most of the work we'll do in a shell centers around running commands in order to do something in particular. Many of the regular tools we'll use at the command line are stored in a few directories, like usrbin and bin. But we don't have to worry too much about where they're actually located because these directories are in the path variable so the shell can find them when it needs to. But not all commands we'll use are located here. The shell has a set of commands built into it, and these are called built-ins. Shells often offer built-ins that do common tasks, so these basic tasks don't have to rely on other programs. These are different than the command line programs we might use, but they work in a similar way, and in some cases they have the same name as other commands. For example, this is the case with pwd, which is both a GNU core tools command and a built-in in Z Shell. I can see the pwd is a…

Contents