# Brief overview of mail shell

The mail shell, invoked by `mail`, is one of the shells available in the kernel that provides you basic mail functions, such as reading mail, reading encrypted mail, sending mail, listing mail, and so on. It supports folder management.

For more information about every command, click the command.

## All mail commands

| Command                                 | Description                                                                                                |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [cd](mail/ks-mail-command-cd)           | Changes directory to another mail folder.                                                                  |
| [exit](mail/ks-mail-command-exit)       | Exits the mail shell and returns to shell.                                                                 |
| [list](mail/ks-mail-command-list)       | Lists messages. You can use page number to navigate your messages.                                         |
| [lsdirs](mail/ks-mail-command-lsdirs)   | Lists directories.                                                                                         |
| [mkdir](mail/ks-mail-command-mkdir)     | Makes a mail directory                                                                                     |
| [mv](mail/ks-mail-command-mv)           | Moves a message to another directory.                                                                      |
| [mvall](mail/ks-mail-command-mvall)     | Moves all messages from a specified sender to another directory.                                           |
| [read](mail/ks-mail-command-read)       | Reads a message.                                                                                           |
| [readenc](mail/ks-mail-command-readenc) | Reads an encrypted message. You should have the sender's GPG public key.                                   |
| [ren](mail/ks-mail-command-ren)         | Renames a directory.                                                                                       |
| [rm](mail/ks-mail-command-rm)           | Removes a message.                                                                                         |
| [rmall](mail/ks-mail-command-rmall)     | Removes all messages from a specified sender.                                                              |
| [rmdir](mail/ks-mail-command-rmdir)     | Removes a mail directory                                                                                   |
| [send](mail/ks-mail-command-send)       | Sends mail.                                                                                                |
| [sendenc](mail/ks-mail-command-sendenc) | Sends encrypted mail. You should have your own private key, and the recipient should have your public key. |
