Jump to content

wall (Unix)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Microsofkid (talk | contribs) at 15:55, 2 January 2010. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

wall is a Unix command line utility. When invoked, it displays the contents of a file or standard input to all logged-in users. Its name is an abbreviation of "write to all".

Invocation

wall is invoked as follows:

foo@foo:~$ wall <filename>

To take standard input as the file, omit the filename. To write the text to send just before, combine it with the "echo" command :

foo@foo:~$ echo text to send |wall

Alternatively, typing wall then enter, typing any text and pressing CTRL + D gives the same result:

foo@foo:~$ wall
text to send
on as many lines as neccesary
^D

Output

When invoked, wall displays the following output:

Broadcast Message from foo@lothlorien
  (/dev/pts/0) at 01:23 ...

This is the message that would be sent.

References