Trivial Solaris question #1

Posted on 2000-02-11
Medium Priority
Last Modified: 2013-12-27
Trivial Solaris question #1:
- how to retrieve from the system current init level?

Perhaps someone knows how to do it on another system?
Question by:sereda

Accepted Solution

dirc earned 80 total points
ID: 2512064
On Solaris 2.7 (and possibly earlier versions):

strings /var/adm/utmp | grep run-level

On HP-UX 10.20:

strings /etc/utmp | grep run-level

For other operating systems, check "man init" for the location of the utmp file.

Author Comment

ID: 2512106
Wow, what a hack :)
How did you know about that?

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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

627 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