⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msgs.1

📁 早期freebsd实现
💻 1
字号:
.\" Copyright (c) 1980, 1990, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"	@(#)msgs.1	8.1 (Berkeley) 6/6/93.\".Dd June 6, 1993.Dt MSGS 1.Os BSD 4.Sh NAME.Nm msgs.Nd system messages and junk mail program.Sh SYNOPSIS.Nm msgs.Op Fl fhlpq.Op Ar number.Op Ar \-number.Nm msgs.Op Fl s.Nm msgs.Op Fl c.Op \-days.Sh DESCRIPTION.Nm Msgsis used to read system messages.These messages aresent by mailing to the login `msgs' and should be shortpieces of information which are suitable to be read once by most usersof the system..Pp.Nm Msgsis normally invoked each time you login, by placing it in the file.Pa .login(or.Pa .profileif you use.Xr sh 1 ) .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:.Bl -tag -width Fl.It Fl yType the rest of the message..It Ic RETURNSynonym for y..It Fl nSkip this messageand go on to the next message..It FlRedisplay the last message..It Fl qDrop out of.Nm msgs ;the next time.Nm msgswill pick up where it last left off..It Fl sAppend the current message to the file ``Messages'' in the current directory;`s\-' will save the previously displayed message. A `s' or `s\-' maybe followed by a space and a file name to receive the message replacingthe default ``Messages''..It Fl mA copy of the specified message is placed in a temporarymailbox and.Xr mail  1is invoked on that mailbox.Both `m' and `s' accept a numeric argument in place of the `\-'..El.Pp.Nm Msgskeeps track of the next message you will see by a number in the file.Pa \&.msgsrcin your home directory.In the directory.Pa /var/msgsit keeps a set of files whose names are the (sequential) numbersof the messages they represent.The file.Pa /var/msgs/boundsshows the low and high number of the messages in the directoryso that.Nm msgscan quickly determine if there are no messages for you.If the contents of.Pa boundsis incorrect it can be fixed by removing it;.Nm msgswill make a new.Pa boundsfile the next time it is run..PpThe.Fl soption is used for setting up the posting of messages.  The line.Pp.Dl msgs: \&"\&| /usr/ucb/msgs \-s\&".Ppshould be included in.Pa /etc/aliases(see.Xr newaliases 1 )to enable posting of messages..PpThe.Fl coption is used for performing cleanup on.Pa /var/msgs.An entry with the.Fl coption should be placed in.Pa /etc/crontabto run every night.  This will remove all messages over 21 days old.A different expiration may be specified on the command line to overridethe default..PpOptions when reading messages include:.Bl -tag -width Fl.It Fl fDo not to say ``No new messages.''.This is useful in a.Pa .loginfile since this is often the case here..It Fl qQueries whether there are messages, printing``There are new messages.'' if there are.The command ``msgs \-q'' is often used in login scripts..It Fl hPrint the first part of messages only..It Fl lOption causes only locally originated messages to be reported..It Ar numA message number can be givenon the command line, causing.Nm msgsto start at the specified message rather than at the next messageindicated by your.Pa \&.msgsrcfile.Thus.Pp.Dl msgs \-h 1.Ppprints the first part of all messages..It Ar \-numberStart.Ar numbermessages back from the one indicated in the.Pa \&.msgsrcfile, useful for reviews of recent messages..It Fl pPipe long messages through.Xr more  1  ..El.PpWithin.Nm msgsyou can also go to any specific message by typing its number when.Nm msgsrequests input as to what to do..Sh ENVIRONMENT.Nm Msgsuses the.Ev HOMEand.Ev TERMenvironment variables for the default home directory andterminal type..Sh FILES.Bl -tag -width /usr/msgs/* -compact.It Pa /usr/msgs/*database.It ~/.msgsrcnumber of next message to be presented.El.Sh SEE ALSO.Xr aliases 5 ,.\".Xr crontab 5 ,.Xr mail 1 ,.Xr more 1.Sh HISTORYThe.Nm msgscommand appeared in.Bx 3.0 .

⌨️ 快捷键说明

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