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.
I am a Linux beginner, so sorry for the stupid question.
I would like to have some programs autostart on bootup. For example some mount commands. But is there a Linux equivalent of the Autoexec.bat?
not meaning to highjack this question could I expand a little more on the question. What is the general order of "autoexec.bat" like files that are executing up to the point of the first login?
ie, would rc.local be the last file run (along with runlevel .d file)? What would come before that? /etc/initrc
I guess that is lethal thing to ask considering all the different distros out there? But let's say for RedHat.
For the gentoo-ers there's several places, and really I think it depends on whether you emerge it or build it yourself. For emerge:
rc-update add <application> default
For others, place them in:
/etc/conf.d/local.start (and if you need to stop them) then:
/etc/conf.d/local.stop
I'm sure one of you real gentoo-ers out there know of more, or maybe even the "proper" way to do this, but that's just some more to add
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.