Learn how to create shortcut commands, known as aliases, to make it easier to execute commonly used commands.
- [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 you see it worked. … I get the exact same thing. …
Skill Level Intermediate
1. Introduction to Unix
2. Files and Directories
3. Ownership and Permissions
4. Commands and Processes
5. Directing Input and Output
6. Configure Your Working Environment
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.