diff --git a/common/alias.md b/common/alias.md new file mode 100644 index 0000000000..48e87cda72 --- /dev/null +++ b/common/alias.md @@ -0,0 +1,26 @@ +# alias + +> Creates an alias for a word when used +> as the first word of a command + +- creating a generic alias + +`alias {{word}}="{{command}}"` + +- remove an aliased command + +`unalias {{word}}` + +- full list of aliased words + +`alias -p` + +> Some usefull alias commands + +- turning rm an interative command + +`alias {{rm}}="{{rm -i}}"` + +- overriding la as ls -a + +`alias {{la}}="{{ls -a}}"` \ No newline at end of file