msgs.1

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 192 行

1
192
字号
.\" SCCSID: @(#)msgs.1	8.1	9/11/90.TH msgs 1 "" "" Unsupported.SH Namemsgs \- system messages and junk mail program.SH Syntax.B msgs[.B \-fhlpq] [.I number] [.I \-number].br.B msgs \-s.br.B msgs \-c [\fI\-days\fP].SH DescriptionThe .PN msgscommandis used to read system messages.These messages aresent by mailing to the login ``msgs'' and should be shortpieces of information that are suitable to be read once by most usersof the system..PPThe.PN msgscommandis normally invoked each time you log in, by placing it in the file.PN \&.login.PN (\&.profileif you use.PN /bin/sh ).It will then prompt you with the source and subject of each new message.If there is no subject line, the first few non-blank lines of themessage will be displayed.If there is more to the message, you will be told howlong it is and asked whether you wish to see the rest of the message.The possible responses are:.TP 10.B yType the rest of the message.TP .B RETURNSynonym for y..TP.B nSkip this messageand go on to the next message..TP .B \-Redisplay the last message..TP .B qDrops you out of.I msgs;the next time you run the program it will pick up where you left off..TP .B sAppend the current message to the file .PN Messages in the current directory;.B s\- saves the previously displayed message. Entering .B s or .B s\- followed by a space and a filename specifies writing the message toa file other than thedefault,.PN Messages ..TP \fBm\fR or \fBm\-\fRCauses a copy of the specified message to be placed in a temporarymailbox and .PN mail to be invoked on that mailbox..PPBoth .B m and .B s accept a numeric argument in place of the `\-'..PPThe .PN msgscommand keeps track of the next message you will see by a number in the file.PN \&.msgsrcin your home directory.In the directory.PN /usr/msgs ,it keeps a set of files whose names are the (sequential) numbersof the messages they represent.The file.PN /usr/msgs/boundsshows the low and high number of the messages in the directoryso that.PN msgscan quickly determine if there are no messages for you.If the contents of.PN boundsis incorrect it can be fixed by removing it;.PN msgswill make a new.PN boundsfile the next time you run .PN msgs ..SH Options.TP 10.B \-fCauses it not to say ``No new messages.''.This is useful in your.PN \&.loginfile since this is often the case here..TP 10.B \-qQueries whether there are messages, printing``There are new messages.'' if there are.The command ``msgs \-q'' is often used in login scripts..TP 10.B \-hCauses.PN msgsto print the first part of messages only..TP 10.B \-lCauses only locally originated messages to be reported..TP 10.I numbercauses.PN msgsto start at the message specified by .I number,rather than at the next messageindicated by your.I \&.msgsrcfile.Thus.IP "" 5	% \fBmsgs 5\fB.IP "" 5	causes .PN msgsto begin at the fifth message..TP 10.I "\-number"Causes.PN msgsto start.I numbermessages back from the one indicated by your .I \&.msgsrcfile. This option is useful for reviewing recent messages..TP 10.B \-pCauses long messages to be piped through.PN more ..TP 10.B \-sAdds a new message to .PN /usr/msgs ..TP 10.B \-cRemoves messages that have been in .PN /usr/msgsmore than a specified number of days from that file..TP.I \-daysDetermines the number of days a message is in.PN /usr/msgsbefore it is removed. You must be the superuser to use the.B \-c option..PPWithin.PN msgsyou can also go to any specific message by typing its number when.PN msgsrequests input. .SH Files.ta 2i\f(CW/usr/msgs/*\fR	database.br\f(CW~/.msgsrc\fR	number of next message to be presented.SH See Alsomail(1), more(1)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?