Question

1. Identify the names of the run scripts that are executed in run level 1 when the system starts up [hint: These scripts begin with ‘S’].

2. Identify the names of the scripts that are executed in run level 5 when the system is going down [hint: These scripts begin with ‘K’].

3. What is the default run-level on the cs.franklin.edu machine (answer is in the /etc/inittab file)?

4. What command does the cs.franklin.edu machine execute during a detected power-failure (see /etc/inittab file)?

etc/inittab file:

# inittab is only used by upstart for the default runlevel. # ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYS

5. Identify the names of the scripts that are executed in run level 1 when the system is going down [hint: These scripts begin with ‘K’].

6. What is the default run-level in Knoppix?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solutions:

1. Identify the names of the run scripts that are executed in run level 1 when the system starts up [hint: These scripts begin with ‘S’].

Ans: For run level 1 , all the files starting with S , present in /etc/rc1.d/ directory , are executed at system start up.

Run following command in your system. Different distributions of Linux may have different files :

ls -l /etc/rc1.d/S*

for example, in my system following files are there:

/etc/rc1.d/S01killprocs

/etc/rc1.d/S02single

Output:

$ ls -l /etc/rc1.d/S*
lrwxrwxrwx 1 root root 19 Aug 15 2017 /etc/rc1.d/S01killprocs -> ../init.d/killprocs
lrwxrwxrwx 1 root root 16 Aug 15 2017 /etc/rc1.d/S02single -> ../init.d/single

2. Identify the names of the scripts that are executed in run level 5 when the system is going down [hint: These scripts begin with ‘K’].

Ans:

For run level 5 , all the files starting with K , present in /etc/rc5.d/ directory , are executed at system shutting down.

Run following command in your system. Different distributions of Linux may have different files :

ls -l /etc/rc5.d/K*

3. What is the default run-level on the cs.franklin.edu machine (answer is in the /etc/inittab file)?

Ans : As per the given inittab file , the default run level on the cs.franklin.edu machine is 3.

Check the line in given file : id:3:initdefault: ( here 3 stands for the runlevel)

4. What command does the cs.franklin.edu machine execute during a detected power-failure (see /etc/inittab file)?

Ans : As per the given inittab file, following command is executed during a detected power-failure:

/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

hint : check the comment above given command in the given inittab file. In case of detected failure, it gives instrction to server to shutdown for 2 minutes from now.

5. Identify the names of the scripts that are executed in run level 1 when the system is going down [hint: These scripts begin with ‘K’].

Ans :

For run level 1 , all the files starting with K , present in /etc/rc1.d/ directory , are executed at system shut down.

Run following command in your system. Different distributions of Linux may have different files :

ls -l /etc/rc1.d/K*

for example, in my system following files are there:

$ ls -l /etc/rc1.d/K*
lrwxrwxrwx 1 root root 20 Aug 15 2017 /etc/rc1.d/K01alsa-utils -> ../init.d/alsa-utils
lrwxrwxrwx 1 root root 19 Aug 15 2017 /etc/rc1.d/K01bluetooth -> ../init.d/bluetooth
lrwxrwxrwx 1 root root 14 Aug 15 2017 /etc/rc1.d/K01cups -> ../init.d/cups
lrwxrwxrwx 1 root root 22 Aug 15 2017 /etc/rc1.d/K01cups-browsed -> ../init.d/cups-browsed
lrwxrwxrwx 1 root root 20 Aug 15 2017 /etc/rc1.d/K01irqbalance -> ../init.d/irqbalance
lrwxrwxrwx 1 root root 20 Aug 15 2017 /etc/rc1.d/K01kerneloops -> ../init.d/kerneloops
lrwxrwxrwx 1 root root 17 Aug 15 2017 /etc/rc1.d/K01lightdm -> ../init.d/lightdm
lrwxrwxrwx 1 root root 15 Jan 29 14:48 /etc/rc1.d/K01mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 20 Jan 16 00:32 /etc/rc1.d/K01postgresql -> ../init.d/postgresql
lrwxrwxrwx 1 root root 15 Aug 15 2017 /etc/rc1.d/K01saned -> ../init.d/saned
lrwxrwxrwx 1 root root 27 Aug 15 2017 /etc/rc1.d/K01speech-dispatcher -> ../init.d/speech-dispatcher
lrwxrwxrwx 1 root root 18 Aug 15 2017 /etc/rc1.d/K01thermald -> ../init.d/thermald
lrwxrwxrwx 1 root root 13 Aug 15 2017 /etc/rc1.d/K01ufw -> ../init.d/ufw
lrwxrwxrwx 1 root root 15 Aug 15 2017 /etc/rc1.d/K01uuidd -> ../init.d/uuidd
lrwxrwxrwx 1 root root 18 Aug 15 2017 /etc/rc1.d/K01whoopsie -> ../init.d/whoopsie
lrwxrwxrwx 1 root root 22 Aug 15 2017 /etc/rc1.d/K02avahi-daemon -> ../init.d/avahi-daemon
lrwxrwxrwx 1 root root 17 Aug 15 2017 /etc/rc1.d/K04rsyslog -> ../init.d/rsyslog

6. What is the default run-level in Knoppix?

Ans : The default run level in Knoppix can be found in /etc/inittab file.

The default is set 2 in knoppix .

Please give thumbs up if you like the solution.

Add a comment
Know the answer?
Add Answer to:
1. Identify the names of the run scripts that are executed in run level 1 when...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Develop a functional flowchart and then write a C++ program to solve the following problem. 1....

    Develop a functional flowchart and then write a C++ program to solve the following problem. 1. Create a text file named c1.txt and write your brand of computer (like Dell, HP, etc) in the file. You will be reading the name of the file from the keyboard as a string, using the string class. Your program will also read the brand of your computer from the keyboard. The process of the file creation (name of the file, mode for opening...

  • Assignment Overview In Part 1 of this assignment, you will write a main program and several...

    Assignment Overview In Part 1 of this assignment, you will write a main program and several classes to create and print a small database of baseball player data. The assignment has been split into two parts to encourage you to code your program in an incremental fashion, a technique that will be increasingly important as the semester goes on. Purpose This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of...

  • C Programming - Please Help us! Implementing Load Balancing, the 3 Base Code files are at the bot...

    C Programming - Please Help us! Implementing Load Balancing, the 3 Base Code files are at the bottom: Implementing Load Balancing Summary: In this homework, you will be implementing the main muti-threaded logic for doing batch based server load balancing using mutexes Background In this assignment you will write a batch-based load balancer. Consider a server which handles data proces- sing based on user requests. In general, a server has only a fixed set of hardware resources that it can...

  •   1. When it comes to financial matters, the views of Aristotle can be stated as:...

      1. When it comes to financial matters, the views of Aristotle can be stated as: a. usury is nature’s way of helping each other. b. the fact that money is barren makes it the ideal medium of exchange. c. charging interest is immoral because money is not productive. d. when you lend money, it grows more money. e. interest is too high if it can’t be paid back.  2. Since 2008, when the monetary base was about $800 billion,...

  • Additional code needed: PartA: BurgerOrder class (1 point) Objective: Create a new class that represents an...

    Additional code needed: PartA: BurgerOrder class (1 point) Objective: Create a new class that represents an order at a fast-food burger joint. This class will be used in Part B, when we work with a list of orders. As vou work through this part and Part B, draw a UML diagram of each class in using the UML drawing tool 1) Create a new Lab5TestProject project in Netbeans, right-click on the lab5testproject package and select New>Java Class 2) Call your...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

  • Please read the article and answer about questions. You and the Law Business and law are...

    Please read the article and answer about questions. You and the Law Business and law are inseparable. For B-Money, the two predictably merged when he was negotiat- ing a deal for his tracks. At other times, the merger is unpredictable, like when your business faces an unexpected auto accident, product recall, or government regulation change. In either type of situation, when business owners know the law, they can better protect themselves and sometimes even avoid the problems completely. This chapter...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT