Edit .bashrc in your home directory
-or-
edit /etc/bashrc if you wish to add a global alias (you must be root).
Enter the following aliases:
alias nano='nano -w'
alias la='ls -a —color'
Note that you can use the semicolon (;) to have an alias run multiple commands:
alias cls='clear; ls'
Either login again
-or-
enter . .bashrc in your home directory
-or-
enter source .bashrc in your home directory
-or-
enter . bashrc if you're root & in /etc
-or-
enter source bashrc if you're root & in /etc
Contact
WorkFor work info, see WebSanity. |
All content, unless under a Creative Commons license, is © 1997-2011 Scott Granneman. (Take a look around—a lot of content is licensed under a Creative Commons license, which gives YOU a lot of freedom to reuse my work.) |
|