Creating aliases

You can use aliases to map a command to a custom command that is easier to remember or shorter to type.

Command

Description

af alias [alias=command]

Creates an alias.

af aliases

Lists all of the aliases you have set up.

af unalias [alias]

Removes an alias you had previously configured.

Using aliases is currently fairly restricted. For example, you cannot create an alias that includes parameters. However, if you just want to change the command name, following is an example. In this example we will create an alias to use lo instead of logout:

$af aliases
No Aliases

$ af alias lo=logout
Successfully aliased 'lo' to 'logout'

$ af aliases
+-------+---------+
| Alias | Command |
+-------+---------+
| lo    | logout  |
+-------+---------+

$ af lo
Successfully logged out of [https://api.appfog.com]

$ af unalias lo
Successfully unaliased 'lo'
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.38.92