소스 검색

alias: change main description; add view example (#1224)

Waldir Pimenta 8 년 전
부모
커밋
07c2de5e58
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      pages/common/alias.md

+ 6 - 2
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}}`