
warnquota | 501
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
w
w [options] [user]
Print summaries of system usage, currently logged-in users, and
what those users are doing. w is essentially a combination of
uptime, who, and ps -a. Display output for one user by specifying
user.
Options
-f Toggle printing the from (remote hostname) field.
-h Suppress headings and uptime information.
-s Use the short format.
-u Ignore the username while figuring out the current process
and CPU times.
-V Display version information.
File
/var/run/utmp
List of users currently logged in.
wall
wall [file]
wall [-n] [message]
Write to all users. Depending on your Linux distribution, wall uses
one of the two syntaxes shown. In both versions, the default is for
wall to read a message from standard input and send the message
to all users currently logged in, preceded by “Broadcast Message
from...” With the first syntax, which comes with Debian, for
example, if file is specified, wall reads input from that file rather
than from standard input, and only the superuser can write to a
terminal if the user has disallowed messages. With the second
syntax, distributed by Red Hat, for example, the text of the
message can be included on the command line, and the message is
limited to 20 lines. In this form, if -n is specified, the default banner
message is replaced ...