Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In Sun Solaris Unix, if I want to create an alias I just create a dot alias file and add my alias. The system already knows to look in the dot alias file. In Linux, apparently I have to add a line to my dot bashrc file to point at the alias file e.g. . ./.alias. However, this doesn't seem to work. Alternatively, I can add the alias directly to my dot bashrc file, I think, but I prefer using a dot alias file if I can.
Apparently Mandrake (8.2) already sets up 14 aliases to start with as I can see them when I type alias on the command line.
Clarification of how alias works in Linux would be appreciated.
I looked at /etc/profile.d and found alias.sh. I added the alias I wanted and it works. Thanks for the help.
The book: 'Linux Desk Reference' says that 'Collections of alias commands are typically stored in a file called .alias in the users home directory. That was what I expected. I wonder why Mandrake did it this way?
persoanlly i've not seen .alias before. i guess it's probably a bit outdated. it may well still work though, you could have a look through files such as /etc/bashrc to see if your local one gets sourced or not.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.