LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   alias creation (https://www.linuxquestions.org/questions/linux-general-1/alias-creation-4180/)

p_murugappan 07-11-2001 01:18 PM

alias creation
 
I am a newbie and may I know how to create a start up scripts or alias files in LInux. I use red hat 7.1

P.Murugappan

cinnix 07-12-2001 12:46 AM

As far as creating boot scripts is concerned, I learned by looking at the existing ones and modeling mine after them. Just make sure you look into each and every function to see what exactly you are doing. This way you will learn from your experiences.

As far as alias files, what exactly do you mean. If you mean create an alias to a command (like when you type vi, it will execute vim), all you have to do is edit the .bashrc file in your home directory by adding entries like the following.

alias CD='cd /mnt;mount cdrom'

This way when you enter CD, it will switch to your /mnt directory and then mount the cdrom.

If you mean create a "windows shortcut", you have to use the ln command. type

man ln

at the command prompt to learn more about it.

Yerp 07-20-2004 12:40 PM

http://www.linuxquestions.org/questi...threadid=47227


All times are GMT -5. The time now is 01:02 PM.