Linux 1 Change your system for the default run level 3 Reboot the system, and se
ID: 3715897 • Letter: L
Question
Linux
1 Change your system for the default run level 3 Reboot the system, and see that you are at the run level 3. How can you tell that you are at that level? Switch the system back to the default level 2. Configure your system to add a new script at your default level. Take the script from here https://unix.stackexchange.com/questions/20357/how-can-i-make-a-script-in-etc-init-d-start-at-boot you need to create some custom command of your choice in the function starto. Everything else leave exactly as is. Note that you need to keep the exact format, so the best way would be to copy and paste. Then to register your scripts and activate command and the run level, scroll the page down and follow exactly what it is written there. Start the default run level and check that you see result of your script run.Explanation / Answer
Hi,here is the answer to your first quesion.During the boot process for Redhat 9.0 and Fedora Core systems the init command opens the /etc/inittab file to decide what "runlevel" the system should be booted to. The /etc/inittab file is a plain text file that can be opened with your favorite text editor.
The relavent section of a sample /etc/inittab file is as follows:
id:3:initdefault:
The key line in the example above is:
id:3:initdefault:
This tells the init process that the default run level for the system is run level 3. To change to a different run level simply change the number and save the /etc/inittab file. Before doing this, however, be absolutely sure you know which run level you want.
In this way by selecting the proper number you can again switch to default level.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.