Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 04-24-2001, 05:47 PM   #1
LQ Newbie
Registered: Apr 2001
Posts: 2

Rep: Reputation: 0
Red face

I was going through a search engine & i came accross your e-mail id ,
well i want to know few
1) where can i find the executable file in Linux which acts similar to "autoexe.bat in windows environment" . like i need the complete path to that file that runs automatically.

2) Once we come to know about the file , how to break down inside the code , to know what other files this executable file must be running.
ok thanks , hoping for your prompt reply
Old 04-24-2001, 06:58 PM   #2
Registered: Feb 2001
Posts: 109

Rep: Reputation: 15

There is no "autoexec.bat" file to speak of in Linux. There are different run-levels that correspond to different levels of access to the system.

Each run level has different scripts that it will either run or make sure are not running. These scripts can be found in the /etc/rc.d directory. Each of these scripts can be editted in any text editor as long as you have permission to make changes to these files.

For example, /etc/rc5.d is the directory for run-level 5. In this directory you will find a list of symbolic links to /etc/rcd.d (going off of memory here, since I'm at work on a windows machine) which is where all of the scripts are located. A script for a firewall could be called simply "firewall". In the /etc/rc5.d directory, you would see a sybolic link called S10 firewall, which tells the system to start the firewall script in /etc/rcd.d. The 10 means that it would be the 10th (or so) item in the startup for that run-level, so it would have to start prior to #11 and so on.

If you want to change the way a system starts up at any run-level you can either modify the script, delete the symbolic link, comment it out in that run-level directory, or tell it to kill the process (K10 instead of S10).

That's it in a (wordy) nutshell.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How does it all break down? Bu3Nix Slackware - Installation 5 09-15-2005 02:50 PM
start up files and tar(small q..) sachitha Programming 2 08-04-2005 05:53 AM
Kde wont start missing files. Nz_Boy_2004 Linux - Software 2 10-10-2004 09:54 PM
Could someone please break it down for me...? Pwcca Slackware 6 01-23-2003 10:05 AM
burning .iso files to start imakwik1 Linux - General 1 11-07-2001 05:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration