Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-23-2007, 09:36 PM   #1
Registered: Jul 2007
Location: Penang , Malaysia.
Distribution: red hat linux
Posts: 133

Rep: Reputation: 15
Smile how to know current(now) my working environment init 1,2,3,4,5,6?

Hi, how to know now my working environment is in "init 2,3,4,5", init 1,4,5 i know because 1 is halt, 4 is dont know what?, 5 is X(GUI). so what command should i use to check now my situation init?

Thank for help me so much...
Old 08-23-2007, 09:40 PM   #2
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
You should try searching before asking a question. More often then not, the answer is already out there.

How can I determine which runlevel my system is currently in?

This may not work on Red Hat 8, but give it a try.
Old 08-23-2007, 09:56 PM   #3
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 211

Rep: Reputation: 30


<previous runlevel> <current run level>


N 5 <---- N means that you didn't change from any runlevel since boot. 5 means you are in run level 5 now.

if you switch to 3 from 5 then this will show:

5 3

self explainatory


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with X consoles - "shell-init: error retrieving current directory" lowpro2k3 Slackware 4 03-26-2007 07:36 PM
Environment variables not working iansoundz Linux - General 3 12-02-2005 03:28 PM
favorite C working environment? Jaster Programming 5 02-22-2005 11:19 PM
Setting environment variable to current date/time nafan Programming 1 08-23-2004 10:04 PM
edit path environment variable to include current working directory alb1954 Linux - Newbie 8 07-12-2004 12:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration