Home > ubuntu > Current runlevel

Current runlevel

Figure out the current runlevel of your system.

Surprise, surprise :) You need the following command:

$ runlevel   # command
N 2          # sample output

The previous and current runlevel from that record are output separated by a single space. If there is no previous runlevel in the record, the letter N will be substituted.

So, in my case the current runlevel is 2. It means I can check the startup scripts in the directory /etc/rc2.d.

Categories: ubuntu Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: