WRITE(1)
๐ WRITE(1) โ the write command, bestie edition ๐
okay so you found the write page in the User Commands section of the manual, and honestly? iconic. let's get into it ๐ซถ
โจ NAME โจ
write โ send a message to another user ๐ฌ
๐ SYNOPSIS ๐
write user [ttyname]
๐ธ DESCRIPTION ๐ธ
so write lets you talk to other users, bestie โ it literally copies lines from your terminal over to theirs. it's giving pen pal but make it live. ๐
when you run write, the person you're writing to gets a message that looks like this:
Message from yourname@yourhost on yourtty at hh:mm ...
every line you type after that gets copied straight onto the specified user's terminal. and listen โ if they wanna reply, they have to run write too. it's not automatic, it's mutual effort, fr fr. ๐ญ
when you're done, you type an end-of-file or an interrupt character. the other person will see the message EOF, which is the universal signal for "conversation over, bye bestie" โจ
you can stop people (well, everyone except the superuser ๐) from writing to you by using the mesg(1) command. and heads up: some commands, like nroff(1) and pr(1), might automatically disallow writing so that the output they're producing doesn't get overwritten. rude but valid honestly. ๐
if the user you wanna write to is logged in on more than one terminal, no stress โ you can specify which terminal by passing the terminal name as the second operand to write. OR you can just let write pick for you: it goes with the one that has the shortest idle time. why? because if someone's logged in at work and dialed up from home, the message should land in the right place. so thoughtful. ๐ง
and now for the traditional protocol, iykyk: the string -o, either at the end of a line or on a line by itself, means it's the other person's turn to talk. and the string oo means the person believes the conversation is over. periodt. ๐
๐ OPTIONS ๐
-V,--versionโ shows you the version info and dips. โ๏ธ-h,--helpโ shows you the help text and dips. ๐ซถ
๐ฐ๏ธ HISTORY ๐ฐ๏ธ
a write command showed up all the way back in Version 6 AT&T UNIX. ancient. legendary. still here. ๐
๐ SEE ALSO ๐
๐ REPORTING BUGS ๐
found a bug? don't be shy, bestie โ use the issue tracker at https://github.com/karelzak/util-linux/issues.
๐ฆ AVAILABILITY ๐ฆ
the write command is part of the util-linux package, which you can download from the Linux Kernel Archive https://www.kernel.org/pub/linux/utils/util-linux/.
โจ and that's the whole page, bestie โจ this wasutil-linux 2.37.2, dated2021-06-02, and yes she ate. no cap. ๐๐ฆ๐ธ
๐ฆ where this page comes from
- ubuntu jammy: bsdextrautils 2.37.2-4ubuntu3 ยท GPL-2.0-or-later
- ubuntu jammy: bsdextrautils 2.37.2-4ubuntu3.6 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms