×


Related to aliases


Methods to List All Available Commands and Aliases in Linux

This article covers how to list all the available commands and aliases that we can run on Linux. In fact, The compgen is bash built-in command and it will show all available commands, aliases, and functions for you. This command works under Linux, macOS, *BSD and Unix-like system when Bash shell is installed. 

Alias Command in Linux - With Examples

This article covers how to create aliases and use the alias command in Linux. In fact, the alias command instructs the shell to replace one string with another when executing commands. Aliases are used to customize the shell session interface. Using alias, frequently-used commands can be invoked using a different, preferred term; and complex or commonly-used options can be used as the defaults for a given command.

Create and Use Bash Aliases on Ubuntu 20.04 Linux System - Step by Step Process ?

This article covers the procedure of creating and using bash aliases. Running long and complex commands is usually tedious and time-consuming. Aliases provide much-needed relief by providing shortcuts to those complex commands.

These shortcuts can easily be called on the terminal and yield the same result as the complex command. 

This tutorial shows how to create and add aliases permanently to your bash shell on Linux and Unix-like systems.


To Create Bash Aliases

Creating aliases in bash is very straight forward. 

The syntax is as follows:

alias alias_name="command_to_run"

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.