![为什么 list 命令在邮件中不起作用?](https://linux22.com/image/19975/%E4%B8%BA%E4%BB%80%E4%B9%88%20list%20%E5%91%BD%E4%BB%A4%E5%9C%A8%E9%82%AE%E4%BB%B6%E4%B8%AD%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8%EF%BC%9F.png)
为什么 list 命令在邮件中不起作用?
当我尝试 l 或 list 时,它不起作用。相反,它为我提供了有效命令的列表,包括 list.
Commands are:
next, alias, print, type, Type, Print, visual, top, touch, preserve,
delete, dp, dt, undelete, unset, mail, mbox, more, page, More, Page,
unread, U, !, copy, chdir, cd, save, source, set, shell, version,
group, write, from, file, folder, folders, ?, z, headers, help, =,
Reply, Respond, reply, respond, edit, echo, quit, list, xit, exit,
size, hold, if, else, endif, alternates, ignore, discard, retain,
saveignore, savediscard, saveretain, core, #, clobber
编辑:
# cat /etc/redhat-release
CentOS release 5.5 (Final)
# mail --version
mail: invalid option -- -
Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
[-- sendmail-options ...]
mail [-iInNv] -f [name]
mail [-iInNv] [-u user]
# $ rpm -qf $(which mail)
mailx-8.1.1-44.2.2
当然,无论使用哪个发行版,我都无法使其正常工作。但我很高兴知道如何在其中一个上做到这一点。
答案1
根据mail(1)
手册页,list
工作正常:
list (l) List the valid mail commands.
您正在寻找的可能是h
或z
headers
(h) Lists the current windowful of headers. To view the
next or previous group of headers, see the z command.
z mail presents message headers in windowfuls as described under
the headers command. You can move mail's attention forward to
the next window with the z command. Also, you can move to the
previous window by using z-.