How to read mail from linux command

To read mail from the Linux command line, you can use the mail command or mutt command. Here are the steps:

Using the mail command:

  1. Open a terminal and type mail to start the mail reader.
  2. You will see a list of your mail messages. Use the arrow keys to navigate through the list.
  3. To read a message, type the number of the message and press Enter.
  4. The message will be displayed in the terminal.
  5. To quit the mail reader, type q and press Enter.

Using the mutt command:

  1. Open a terminal and type mutt to start the mail reader.
  2. You will see a list of your mail messages. Use the arrow keys to navigate through the list.
  3. To read a message, type the number of the message and press Enter.
  4. The message will be displayed in the terminal.
  5. To quit the mail reader, type q and press Enter.

Additional options:

Tips:

Note: The location of the mail spool file may vary depending on your Linux distribution. The default location is usually /var/spool/mail/username.