{"id":5107,"date":"2015-08-13T14:14:09","date_gmt":"2015-08-13T06:14:09","guid":{"rendered":"http:\/\/rmohan.com\/?p=5107"},"modified":"2015-08-13T14:14:09","modified_gmt":"2015-08-13T06:14:09","slug":"determine-the-runlevel-in-solaris","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5107","title":{"rendered":"determine the runlevel in solaris"},"content":{"rendered":"<h3>Determining a System&#8217;s Run Level<\/h3>\n<p>Display run level information by using the<span class=\"Apple-converted-space\">\u00a0<\/span><tt>who -r<\/tt><span class=\"Apple-converted-space\">\u00a0<\/span>command.<\/p>\n<pre>$ <b>who -r<\/b><\/pre>\n<p><a name=\"SYSADV1SYSADV1hbrunlevels-ix945\"><\/a><a name=\"SYSADV1hbrunlevels-ix945\"><\/a><a name=\"SYSADV1hbrunlevels-ix945\"><\/a><a name=\"hbrunlevels-ix945\"><\/a><a name=\"SYSADV1SYSADV1hbrunlevels-ix946\"><\/a><a name=\"SYSADV1hbrunlevels-ix946\"><\/a><a name=\"SYSADV1hbrunlevels-ix946\"><\/a><a name=\"hbrunlevels-ix946\"><\/a><a name=\"SYSADV1SYSADV1indexterm-166\"><\/a><a name=\"SYSADV1indexterm-166\"><\/a><a name=\"SYSADV1indexterm-166\"><\/a><a name=\"indexterm-166\"><\/a>Use the<span class=\"Apple-converted-space\">\u00a0<\/span><tt>who -r<\/tt><span class=\"Apple-converted-space\">\u00a0<\/span>command to determine a system&#8217;s current run level for any level.<\/p>\n<p><a name=\"SYSADV1SYSADV1hbrunlevels-1\"><\/a><a name=\"SYSADV1hbrunlevels-1\"><\/a><a name=\"SYSADV1hbrunlevels-1\"><\/a><a name=\"hbrunlevels-1\"><\/a><\/p>\n<p><b>Example\u00a06-1 Determining a System&#8217;s Run Level<\/b><\/p>\n<p>This example displays information about a system&#8217;s current run level and previous run levels.<\/p>\n<pre>$ <b>who -r<\/b>\r\n .    run-level 3  Dec 13 10:10  3  0 S\r\n$<\/pre>\n<table class=\"dkgrey1\" border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<table class=\"vatop\" border=\"0\" summary=\"This table describes the output from the who \u2014r command.\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\n<colgroup>\n<col width=\"50%\" \/>\n<col width=\"50%\" \/><\/colgroup>\n<tbody>\n<tr>\n<th class=\"columncaption\" scope=\"col\" align=\"left\" valign=\"top\">\n<div class=\"headerpadding\">Output of<span class=\"Apple-converted-space\">\u00a0<\/span><tt>who<\/tt><span class=\"Apple-converted-space\">\u00a0<\/span><tt>-r<\/tt><span class=\"Apple-converted-space\">\u00a0<\/span>command<\/div>\n<\/th>\n<th class=\"columncaption\" scope=\"col\" align=\"left\" valign=\"top\">\n<div class=\"headerpadding\">Description<\/div>\n<\/th>\n<\/tr>\n<tr class=\"yellow2\">\n<td scope=\"row\" align=\"left\" valign=\"top\">\n<div class=\"pad5x10\"><tt>run-level 3<\/tt><\/div>\n<\/td>\n<td align=\"left\" valign=\"top\">\n<div class=\"pad5x10\">Identifies the current run level<\/div>\n<\/td>\n<\/tr>\n<tr class=\"yellow2\">\n<td scope=\"row\" align=\"left\" valign=\"top\">\n<div class=\"pad5x10\"><tt>Dec 13 10:10<\/tt><\/div>\n<\/td>\n<td align=\"left\" valign=\"top\">\n<div class=\"pad5x10\">Identifies the date of last run level change<\/div>\n<\/td>\n<\/tr>\n<tr class=\"yellow2\">\n<td scope=\"row\" align=\"left\" valign=\"top\">\n<div class=\"pad5x10\"><tt>3<\/tt><\/div>\n<\/td>\n<td align=\"left\" valign=\"top\">\n<div class=\"pad5x10\">Also identifies the current run level<\/div>\n<\/td>\n<\/tr>\n<tr class=\"yellow2\">\n<td scope=\"row\" align=\"left\" valign=\"top\">\n<div class=\"pad5x10\"><tt>0<\/tt><\/div>\n<\/td>\n<td align=\"left\" valign=\"top\">\n<div class=\"pad5x10\">Identifies the number of times the system has been at this run level since the last reboot<\/div>\n<\/td>\n<\/tr>\n<tr class=\"yellow2\">\n<td scope=\"row\" align=\"left\" valign=\"top\">\n<div class=\"pad5x10\"><tt>S<\/tt><\/div>\n<\/td>\n<td align=\"left\" valign=\"top\">\n<div class=\"pad5x10\">Identifies the previous run level<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Determining a System&#8217;s Run Level <\/p>\n<p>Display run level information by using the who -r command.<\/p>\n<p> $ who -r <\/p>\n<p>Use the who -r command to determine a system&#8217;s current run level for any level.<\/p>\n<\/p>\n<p>Example 6-1 Determining a System&#8217;s Run Level<\/p>\n<p>This example displays information about a system&#8217;s current run level and previous run levels.<\/p>\n<p> [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5107"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5107"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5107\/revisions"}],"predecessor-version":[{"id":5108,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5107\/revisions\/5108"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}