Xref: utzoo comp.unix.questions:30750 comp.unix.misc:1367 comp.unix.sysv386:7345 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!mcsun!hp4nl!dri500!slootman From: slootman@dri.nl (Paul Slootman) Newsgroups: comp.unix.questions,comp.unix.misc,comp.unix.sysv386 Subject: Re: Current Run-Level: How can you tell? Message-ID: <1014@dri500.dri.nl> Date: 25 Apr 91 14:30:59 GMT References: <1991Apr23.024433.10460@srwic.UUCP> <1991Apr24.150645.1135@cbnews.cb.att.com> Followup-To: comp.unix.questions Organization: DataCount Register Informatici, Wierden, The Netherlands Lines: 19 In article schwartz@groucho.cs.psu.edu (Scott Schwartz) writes: > >Ernie Englehart writes: >| The command "who -r" does the trick. > >Bizarre. Why stick that in the "who" command? I guess "cat" and "ls" >have too many options and "who" needed some... :-) who (at least on the System V machine I know) reads /etc/utmp (or some similar file if you specify it). Amongst other things, the run level is stored in /etc/utmp. With "who -a" you get every entry in the utmp file.... Paul. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= : slootman@dri.nl : You are wise, witty and wonderful, but you : : ...!hp4nl!dri500!slootman : spend too much time reading this sort of trash. : =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=