alias

>Usage

The alias command creates a shortcut or an alternative name for a command or a series of commands. It allows users to create simpler or customized versions of commands, making them faster and easier to type, to highlight keywords.

For example, with alias you could create a shortcut called "ll" for "ls -la" to quickly list files in a detailed format.

>Synopsis

alias [name]=['value']

>Examples

[name]=['command']

Use alias name='command' to create a new shortcut for the command that you would like to have an abbreviation.

Example:

Dots

-zsh

> alias quietgrep='grep -q'


Now there exists the new shortcut quietgrep that does grep -p

N1='C1 N2='C2

Use alias name1='command1' name2'command2' to create new shortcuts associated to their own command at the same time.

unalias

Use unalias 'command' to delete a previous alias created by the user.

Example:

Dots

-zsh

> unalias 'rmconfirm'


Now the shortcut 'rmconfirm' doesn't exist anymore

>Quiz

Progress: Question ? out of ?

Question Title

Page written by Cyrus Kamau