Write (Unix)
From DssWiki
{{DISPLAYTITLE:{{#if:|:|}}write (Unix)}}
write can refer to several Unix commands. All known variations of write are used to write messages to another user. The most popular variation sends a message directly to another user's TTY
Contents |
[edit] Usage
The correct syntax for the write command is:
write user [tty] message
The write session is terminated by sending EOF, which can be done by pressing Ctrl+D. The tty argument is only necessary when a user is logged into more than one terminal.
[edit] Example
A conversation initiated between two users on the same machine:
11:19 AM# write root pts/7 test
Will show up to the user on that console as
Message from root@punch on pts/8 at 11:19 ... test
[edit] History
A version of the write command appeared in the First Edition of the Research Unix operating system. Another variation of write writes a message to a user on a Windows network, using the SMB packet format.
[edit] See also
- List of Unix programs
- talk command
[edit] External links
|Linux|default}}|1|write|url}} write{{#if:{{Man/{{#if:Linux |Linux|default}}|1|write|display_section}}|({{Man/{{#if:Linux |Linux|default}}|1|write|display_section}})}}]{{#if:send a message to another user|: send a message to another user}}{{#if:{{#ifeq: |inline||{{Man/{{#if:Linux |Linux|default}}|1|write|attrib}}}}| – {{#ifeq: |inline||{{Man/{{#if:Linux |Linux|default}}|1|write|attrib}}}}}}
{{#if: |
Unix command line programs and builtins (more) | |||
| File and file system management: | cat | chattr | cd | chmod | chown | chgrp | cksum | cmp | cp | du | df | file | fsck | fuser | ln | ls | lsof | mkdir | mount | mv | pwd | rm | rmdir | split | touch | ||
| Process management: | at | chroot | crontab | exit | kill | killall | nice | pgrep | pidof | pkill | ps | sleep | time | top | wait | watch | ||
| User Management/Environment: | env | finger | id | mesg | passwd | su | sudo | uname | uptime | w | wall | who | whoami | write | ||
| Text processing: | awk | comm | cut | ed | ex | fmt | head | iconv | join | less | more | paste | pg | sed | sort | tac | tail | tr | uniq | wc | xargs | ||
| Shell programming: | basename | echo | expr | false | printf | test | true | unset | Printing: | lp |
| Communications: inetd | netstat | ping | rlogin | traceroute | Searching: find | grep | strings | Miscellaneous: banner | bc | cal | dd | man | size | yes | |
