From the course: Unix Essential Training

Unlock the full course today

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

Setting command aliases

Setting command aliases - Unix Tutorial

From the course: Unix Essential Training

Start my 1-month free trial

Setting command aliases

- [Narrator] In this movie, we're going to learn how to define command aliases in unix. The command that we use to work with aliases is alias. If we type alias by itself, it'll give us a list of the currently defined aliases. I happen to have a couple that got defined by Mac OS, you may not have any, that's okay. It doesn't really matter. It's giving us a list of the current aliases. What it's telling us is that, if we were to type run dash help, it would be the same as the man command. We can define our own aliases by also using the alias command and then giving it that same kind of equation. For example, very common and useful alias is "ll". LL equals and then in single quotes, let's put the command that we want to alias it to. Ls, space, dash lah, and then close my quote again. Now, whenever I type the LL command, it will be the same as if I had typed ls space dash lah. I'll hit return, and let's try it out, ll. And…

Contents