LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   alias command (https://www.linuxquestions.org/questions/linux-newbie-8/alias-command-277131/)

zeviddalop 01-12-2005 09:17 PM

alias command
 
is there any specific directory to create and store alias commands or should i just use my root directory? thanks

Dark_Helmet 01-12-2005 09:21 PM

Create and store aliases in a directory? Who have you been talking to?? :)

I assume you mean an alias for commands. For instance, typing "ll" at the command prompt, and expecting it to execute "ls -l". Those aliases aren't stored as files; they're settings in your ~/.bashrc (normally). Just open ~/.bashrc in a text editor, and define whatever aliases you want. To continue the example I mentioned earlier, you would add a line like this to your ~/.bashrc:
Code:

alias ll='ls -l'
The next time you login, the aliases will be set automatically.

zeviddalop 01-12-2005 09:31 PM

lord helmet, good work. i type the bash command but 'don't have permission'. it's my computer so i know i have administrator privileges but how do i get around this? thanks.

Dark_Helmet 01-12-2005 09:59 PM

Ok, you lost me. What command are you trying to execute, and what's the error message?


All times are GMT -5. The time now is 05:54 AM.