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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi i am very new to linux, (i have ubantu) and would like to start a program when the pc boots.
What i found out so far is to put a command in /etc/rcS.d Am i right? if so, how shall i write the command?
Read the man pages on inittab.
from inittab, you eventually get to the links in the various rc files. prefix "K" means kill when entering this runlevel, and "S" means start. The files link to scripts in /etc/init.d, but they can also be just links to basic commands.
Various books have a complete narrative on the whole init process. There is probably also an online tutorial.
For general purpose tasks, there is /etc/rc.local or as in SuSE, /etc/rc.d/boot.local.
This file is executed at the boot time, just before the system becomes ready to use. All resources are ready at time this file is executed. You can call any scripts you want here.
The scripts at /etc/init.d/rc<n>.d/ are symbolic links to files on /etc/init.d/ and they follow a strict convention about syntax, dependencies about another services, special comments in the header of file used by programs like chkconfig. They are used to start/stop daemons for several services.
My advice is to put any local stuff to rc.local or whatever it is the name in your system.