To give you the best experience, this site uses cookies. Continuing to use 9bis.net means you agree to our use of cookies.
 

 

Setting an alias ( fr )

Dernière modification : 2013/01/26 19:17

Aliases are shortcuts to more complicated commands (for example commands with long list of arguments). To set an alias just use the build-in word alias. The syntax is
alias AliasName = Command
For example ll is usually an alias for ls -lart.
msh> alias ll=\"ls -lart\"
msh> ll
-rwxr-xr-x    1 Cyril2   Administ   579943 Aug 23 08:52 msh.exe
-rw-r--r--    1 Cyril2   Administ     2127 Aug 23 08:34 makefile

To get the list of know aliases simply use alias
msh> alias
ll=ls -lrt