[Last Call] Learn how to a build a cloud-first strategyRegister Now


/etc/inittab file to echo a message to the console

Posted on 2006-05-14
Medium Priority
Last Modified: 2013-12-16
In the /etc/inittab file. Please let me know how to hange this file so that when
the system boots into runlevel 4, it will echo "Hello runlevel 4!" to the console.

Question by:jlim95
1 Comment
LVL 27

Accepted Solution

Nopius earned 150 total points
ID: 16680127
man inittab

The inittab file is composed of entries  that  are  position dependent and have the following format:

in your example rstate is 4
action is: 'once'
process is: /bin/echo "Hello runlevel 4!"
id is any you like, let it be: 'h4'

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question