Categories
Bash OS Interoperability Unix Admin

How to find current runlevel on unix system

Linux provides a utility called runlevel but "who -r" is a portable solution which is available across various Unix types. Here is a brief explanation for both commands. This information is extracted from utmp file.