Cart 0
No products in the cart.


How to use the write command in Linux using practical Examples ?

 

This article covers the write command which is a useful command-line utility that can be used to send messages to other users who are currently logged in to the same system. By using the command's various options, users can send messages, files, and other information. The write command is available on most Linux distributions, though the exact syntax may vary slightly.

 

How to fix "Write Command Not Found" in Linux ?

If you are a Linux user, you may have encountered the "write command not found" error when trying to use the write command. This error message is common and can be fixed with a few simple steps. Here's how to solve the problem.

1. Check Your Path Setting

The first step is to check your path setting. You can do this by typing "echo $PATH" in the terminal. If the output of this command does not include the path to the write command, then you need to add it.

 

2. Add the Path to the Write Command

To add the path to the write command, open the .bashrc file in a text editor and add the following line at the end:

$ export PATH=$PATH:/usr/bin/write

Save the file and then type "source .bashrc" in the terminal to apply the changes.

 

3. Install the Write Package

If the command still does not work, the next step is to install the write package. On most Linux distributions, this can be done using the package manager. For example, on Ubuntu, you can use the command "sudo apt-get install write".

 

4. Verify the Installation

Once the package is installed, you can verify that it is working by typing "write" in the terminal. If the command executes correctly, then you have successfully fixed the "write command not found" error.

 



icon

Sign up to Newsletter

...and receive a free support ticket.