What Is Alias Command in Ubuntu?

What Is Alias Command in Ubuntu?
Contents

Aliases are a way for you to customize the commands by giving them aliases (nicknames). You can use them to remember hard commands or make short names to long commands you just hate to type. To setup aliases, right-click and create an empty file in your home directory and name it “. bash_aliases”.

What’s the purpose of the Alias command?

An alias lets you create a shortcut name for a command, file name, or any shell text. By using aliases, you save a lot of time when doing tasks you do frequently. You can create a command alias.

What is alias command in terminal?

An alias declaration starts with the alias keyword followed by the alias name, an equal sign and the command you want to run when you type the alias. … The ll alias will be available only in the current shell session. If you exit the session or open a new session from another terminal, the alias will not be available.

Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.