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.

Aliases and reserved words

Aliases and reserved words - Unix Tutorial

From the course: Learning Zsh

Start my 1-month free trial

Aliases and reserved words

- [Narrator] When we type something in the shell, there's actually a few different kinds of things that the shell might run, these are aliases, reserved words, functions, built-ins, and commands. The shell looks for things it can run in this order. So, it's important to know a little about each of them before we move on. Aliases provide a way to make customized versions of short commands. For example, if you always use the ls command with Dash A option to show all files, it could become tedious to type ls dash A each time you use it. Running ls doesn't show the hidden files in my home directory here and ls dash A does. To save that extra typing lets set up an alias. So, ls will behave like ls dash A, whenever we call it. All right, alias ls equals ls dash A in quotes and that will set an alias. Now when I run ls, I see the output of ls dash A instead. This doesn't replace the real ls command though. We can still…

Contents