From 07c2de5e584bd617c6097cbf4d4b84af4ab5054d Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Wed, 4 Jan 2017 21:52:02 +0000 Subject: [PATCH] alias: change main description; add view example (#1224) --- pages/common/alias.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/common/alias.md b/pages/common/alias.md index 9296093faa..99c9c3c8a9 100644 --- a/pages/common/alias.md +++ b/pages/common/alias.md @@ -1,12 +1,16 @@ # alias -> Creates an alias for a word when used as the first word of a command. -> Note that these operations are not permanent, expiring when the current shell session ends. +> Creates aliases -- words that are replaced by a command string. +> Aliases expire with the current shell session, unless they're defined in the shell's configuration file, e.g. `~/.bashrc`. - Create a generic alias: `alias {{word}}="{{command}}"` +- View the command associated to a given alias: + +`alias {{word}}` + - Remove an aliased command: `unalias {{word}}`