Technology Insights

Send A Text Message From A Shell To A User Logged Into A Linux Server

This topic is fairly known to most older system administrators however I doubt it is used very often anymore. If you happen to manage any servers where there are typically various people logged in and working on different items from the CLI then it can be useful to be able to send them messages. Using the write command you can send messages to users logged in on specific TTY port or by username. Below are a couple examples of how you would use the write command from a Linux shell.