2022-02-14 02:22:51 +00:00
|
|
|
---
|
|
|
|
title: alias
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2020-06-23 18:21:47 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
Alias a command (with optional flags) to a new name
|
2020-05-24 17:42:20 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
## Signature
|
2020-05-03 04:49:27 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
```> alias (name) (initial_value)```
|
2020-06-23 18:21:47 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
## Parameters
|
2020-05-03 04:49:27 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
- `name`: name of the alias
|
|
|
|
- `initial_value`: equals sign followed by value
|
2020-05-03 04:49:27 +00:00
|
|
|
|
2022-02-20 01:13:33 +00:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Alias ll to ls -l
|
|
|
|
```shell
|
|
|
|
> alias ll = ls -l
|
|
|
|
```
|