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.
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336
Rep:
startup
Where does linux keep all the startup shortcuts? Like in windows it's in the registry, start menu startup folder etc... I can't seem to find where linux keeps it. Thanks!
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748
Rep:
You'll find these types of things (system configuration information) in /etc. It's been a while since I used RH, but if I'm not mistaken, they use rc.d, rc.0, rc.1, and so on for specific runlevel defaults. (Runlevels are pretty simple. 0 is shutdown, 6 is reboot, 3 is usually command line, 1 is something like a super safe (no gui, no network) mode, and 5 is GUI.) rc.d is usually defaults for all runlevels.
So, just change to the /etc directory, and then to the appropriate directory (rc.d, rc.5, or similar for a basic system), and look through those files. They are all pretty basic script files, and you can use the man pages to understand them better. Also, there might be some in your home directory, as "." files. (' ls -d .* ' will list them for you.)
i guess you could look at a bash script as being equivalent to a dos batch file. but the files inside the rc.0, rc.1, rc.2, etc... are shortcuts to the shellscripts in /etc/rc.d/init.d - but when linux boots, it uses the ones in rc.X (where X is the number equivalent to your run level) to control the order of which scripts are run. if you want to add a process to start up during boot, redhat provides a generic script that's run last during the boot process called /etc/rc.d/rc.local - that's probably where you want to add a process to the boot start up. btw, what's up red. long time no talk.
edit: oh yeah, add the distros you're using in your profile. it'll help when you forget to tell us what distro you're using in your posts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.