SlackwareThis Forum is for the discussion of Slackware Linux.
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.
i'm using kernels 2.4.24 on slackware 9.1, and i want to start making alias for my bash shell. but when i go to my home directory i can't find that find.
i even did a ls -a command and still no file. does slackware put the bash profiles stuff somewhere else?
Slack (at least as of 9.1) does not create a .bashrc file for you, you have to create it yourself. I'm not too sure that you even need to put #!/bin/bash in the file, but it can't hurt, I'm sure. Good luck.
It doesn't include it because it can use /etc/profile instead. If all users start off with the same default settings, there's no reason to duplicate the settings in a lot of files, so everyone gets /etc/profile to start off with. If they want to customize, that's what .bashrc and .profile are for.
Speaking of which -- djgerbavore -- I may have told you wrong on which file to use. It depends on when you want it to run. If you use .bashrc, when you log in, it apparently won't run, but when you launch an xterm, it will. If you use .profile, when you log in, it will run, but it will not run when you launch an xterm. If you want it to run for both a terminal where you log in AND an xterm, then you need to put the same thing in BOTH .bashrc and .profile. Sorry I wasn't clearer about this earlier.
Originally posted by djgerbavore do you know why slackware 9.1 doesn't include a .bashrc file? that seems sort of werid
in comparison to other distros, yes that does seem a little bit silly not to include something as basic as this.... but you... now you've learned something new!
and this is actually i think the number one reason why people get hooked on Slackware... always something new to learn and with it comes the sense that you actually know what you at!
I've solved this .bashrc and .profile thing by creating an /etc/bashrc file which I source from within /etc/profile. And then I make a symlink from ~/.bashrc to /etc/profile. That way, every user will have the same aliases and stuff, independent on whether it is a login shell or interactive shell, or whatever.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.