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