wall (Unix)

From Wikipedia, the free encyclopedia

Template:Short description

Page Module:Infobox/styles.css has no content.

wall
[[Programmer|DeveloperTemplate:Pluralize from text]]AT&T Bell Laboratories
Initial releaseMay 1975; 51 years ago (1975-05)
Template:Infobox software/simple
Operating systemUnix and Unix-like
TypeCommand
WebsiteScript error: No such module "WikidataIB".

Script error: No such module "Check for conflicting parameters".

Page Template:Mono/styles.css has no content.wall (an abbreviation of write to all) is a Unix command-line utility that displays the contents of a computer file or standard input to all logged-in users. It is typically used by root to send out shutting down message to all users just before poweroff.

Invocation

Page Template:Mono/styles.css has no content.wall reads the message from standard input by default when the filename is omitted. This is done by piping the output of the Page Template:Mono/styles.css has no content.echo command:

alice@sleipnir:~$ # `tty` to show the current terminal name
alice@sleipnir:~$ tty
/dev/pts/7
alice@sleipnir:~$ echo Remember to brush your teeth! | wall

The message may also be typed in much the same way Page Template:Mono/styles.css has no content.cat is used: invoking Page Template:Mono/styles.css has no content.wall by typing Page Template:Kbd/styles.css has no content.wall and pressing Script error: No such module "key". followed by a message, pressing Script error: No such module "key". and Script error: No such module "key".+Script error: No such module "key".:

alice@sleipnir:~$ wall
Remember to brush your teeth!
^D

Using a here-string:

alice@sleipnir:~$ wall <<< 'Remember to brush your teeth!'

Reading from a file is also supported:

alice@sleipnir:~$ cat .important_announcement
Remember to brush your teeth!
alice@sleipnir:~$ wall .important_announcement # same as `wall !$`

All the commands above should display the following output on terminals that users allow write access to (see mesg(1)):

Broadcast Message from alice@sleipnir
  (/dev/pts/7) at 16:15 ...

Remember to brush your teeth!

See also

References

Page Template:Reflist/styles.css has no content.

Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found.