Shared Flashcard Set

Details

Linux
System Initialization
46
Computer Science
Professional
08/07/2007

Additional Computer Science Flashcards

 


 

Cards

Term
What is initialization?
Definition
The process of starting and stopping all daemons and hardware
Term
What loads the kernel into memory?
Definition
The boot loader
Term
Which daemon does the kernel execute first?
Definition
The init daemon
Term
What is the configuration file for the init daemon?
Definition
/etc/inittab
Term
What is a runlevel?
Definition
A runlevel is an initialization stage which could load basic or more complex set of daemons
Term
What is another name for runlevels?
Definition
initstates since they are controlled by the init daemon
Term
How many runlevels are there?
Definition
Seven
Term
What is runlevel 0?
Definition
Halt, the system has no active daemons and can be powered off
Term
What is runlevel 1?
Definition
Single User Mode, The system only has enough daemons for one user to log on
Term
What is runlevel 2?
Definition
User Defined, allows multiple users to log in without network file sharing support
Term
What is runlevel 3?
Definition
Multi-User Mode, allows multiple users and networking but without GUI
Term
What is runlevel 4?
Definition
Not Normally Used
Term
What is runlevel 5?
Definition
Allows multiple users with networking and GUI
Term
What is runlevel 6?
Definition
Reboot, this will reboot the system
Term
What command do you type to view the runlevel?
Definition
runlevel
Term
How do you change to a different runlevel?
Definition
type init followed by the new runlevel such as init 3
Term
What is the init configuration file?
Definition
/etc/inittab
Term
In the inittab file, what does id:5:initdefault: mean?
Definition
Tells the computer to boot into runlevel 5 as a default during startup
Term
How do you change the inittab file to automatically boot into runlevel 3?
Definition
id:3:initdefault:
Term
In the inittab file, what does si::sysinit:/etc/rc.d/rc.sysinit mean?
Definition
Tells the system to run sysinit on bootup
Term
Can you view the output of the sysinit on the screen during startup?
Definition
Yes, you can see the daemons that are started and if they failed
Term
How do you see the screen details on Fedora Core?
Definition
Click on Show Details to see the output from sysinit
Term
In the inittab file, what does 15:5:wait:/etc/rc.d/rc5 mean?
Definition
Since the default runlevel is 5, then /etc/rc.d/rc5 is executed on startup
Term
What does /etc/rc.d/rc5 do?
Definition
It starts the daemons that start with S and kill daemons that start with K in the /etc/rc.d/rc5.d directory
Term
How can you view which daemons are started at runlevel 5?
Definition
Go to /etc/rc.d/rc5.d directory and look at the daemons
Term
How can you identify which daemons are started and which ones are killed at a runlevel?
Definition
Go the /etc/rc.d/rc#.d directory (replace # with the runlevel) The files that start with S are started, the files that start with K are killed
Term
How can you view the success or failure of the daemons that are started at boot time?
Definition
Look at the screen, or, in Fedora Core, click on Show Details to view daemon status
Term
How can you view the startup messages after you have already booted?
Definition
Look at /var/log/boot.log and the /var/log/messages log files
Term
How are most daemons started?
Definition
Most daemons are started by init
Term
What directory are the daemons that are started by init?
Definition
/etc/rc.d/init.d
Term
If you boot to runlevel 5, in what directory does it look for daemons?
Definition
Runlevel 5 looks in the /etc/rc.d/rc5.d directory
Term
If the daemons are stored in /etc/rc.d/init.d and runlevel 5 looks in another directory called /etc/rc.d/rc5.d how does it find the daemons?
Definition
/etc/rc.d/rc5.d has symbolic links to the actual daemons located in /etc/rc.d/init.d directory
Term
What three commands can most daemons accept?
Definition
start, stop and restart
Term
What is the command to restart the /etc/rc.d/init.d/xinetd daemon?
Definition
/etc/rc.d/init.d/xinetd restart
Term
What is the command to stop the /etc/gui daemon?
Definition
/etc/gui stop (give the path to the daemon followed by the stop command)
Term
What is the command to start the /etc/dhcp daemon?
Definition
/etc/dhcp start (give the path to the daemon followed by the start command)
Term
is there a symbolic link between /etc/init.d directory and /etc/rc.d/init.d directory?
Definition
Yes
Term
What is another way you can type /etc/rc.d/init.d/xinetd restart?
Definition
/etc/init.d/xinetd restart is equivalent because of the symbolic link
Term
How can I make a daemon called rondaemon to automatically start at runlevel 5?
Definition
Copy rondaemon into the /etc/rc.d/init.d directory, then make a symbolic link such as ln -s rondaemon /etc/rc.d/rc5.d/S99rondaemon
Term
Why did I place a symbolic link to the /etc/rc.d/rc5.d directory?
Definition
All daemons are stored in /etc/rc.d/init.d but runlevel 5 has to look in /etc/rc.d/rc5.d directory
Term
How can I kill the daemon called rondaemon when entering runlevel 3?
Definition
Leave rondaemon in /etc/rc.d/init.d (needed by runlevel 5) but make the link ln -s rondaemon /etc/rc.d/rc3.d/K01rondaemon
Term
Why did you have to make a symbolic link to /etc/rc.d/rc3.d directory?
Definition
All daemons are stored in /etc/rc.d/init.d but runlevel 3 has to look in /etc/rc.d/rc3.d directory
Term
What is ntsysv?
Definition
ntsysv is a utility program that makes it easier to set and kill daemons at different runlevels
Term
How do you start the ntsysv utility program?
Definition
type ntsysv
Term
What runlevels can you start and stop daemons if you type ntsysv without parameters?
Definition
You can only start and stop daemons in your current runlevel
Term
How can I use ntsysv with runlevels 0, 1 and 6?
Definition
type ntsysv --levels 016
Supporting users have an ad free experience!