Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

news(1) [opensolaris man page]

news(1) 							   User Commands							   news(1)

NAME
news - print news items SYNOPSIS
news [-a] [-n] [-s] [items] DESCRIPTION
news is used to keep the user informed of current events. By convention, these events are described by files in the directory /var/news. When invoked without arguments, news prints the contents of all current files in /var/news, most recent first, with each preceded by an appropriate header. news stores the ``currency'' time as the modification date of a file named .news_time in the user's home directory (the identity of this directory is determined by the environment variable $HOME ); only files more recent than this currency time are considered ``current.'' OPTIONS
-a Print all items, regardless of currency. In this case, the stored time is not changed. -n Report the names of the current items without printing their contents, and without changing the stored time. -s report how many current items exist, without printing their names or contents, and without changing the stored time. It is useful to include such an invocation of news in one's .profile file, or in the system's /etc/profile. All other arguments are assumed to be specific news items that are to be printed. If a delete is typed during the printing of a news item, printing stops and the next item is started. Another delete within one second of the first causes the program to terminate. ENVIRONMENT VARIABLES
See environ(5) for a description of the LC_CTYPE environment variable that affects the execution of news. FILES
/etc/profile /var/news/* $HOME/.news_time ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------------------------------------+ |ATTRIBUTE TYPE ATTRIBUTE VALUE | |Availability SUNWesu | |CSI Enabled | +-----------------------------------------------------------+ SEE ALSO
profile(4), attributes(5), environ(5) SunOS 5.11 20 Dec 1996 news(1)

Check Out this Related Man Page

news(1) 						      General Commands Manual							   news(1)

NAME
news - Writes system news items to standard output SYNOPSIS
news [-a|-n|-s] | [item...] The news command keeps you informed of news concerning the system. OPTIONS
Displays all news items, regardless of the currency time. The currency time does not change. Reports the names of current news items without displaying their contents. The currency time does not change. Reports the number of current news items without displaying their names or contents. The currency time does not change. DESCRIPTION
Each news item is contained in a separate file in the /usr/news directory. Anyone having read/write permission to this directory can cre- ate a news file. If you run the news command without any options, it displays the current files in /usr/news, beginning with the most recent. You can also specify the items you want displayed. Each file is preceded by an appropriate header. To avoid reporting old news, news stores a currency time. The news command considers your currency time to be the modification time of the file named $HOME/.news_time. Each time you read the news, the modification time of this file changes to that of the reading. Only news item files posted after this time are considered current. Pressing the Interrupt key sequence during the display of a news item stops the display of that item and starts the next. Pressing the Interrupt key sequence again ends news. Most users run news each time they log in by including the following line in their $HOME/.profile file or in the system's /etc/profile: news -n EXAMPLES
To display the items that were posted since you last read the news, enter: news To display all the news items, enter: news -a | pg This displays all the news items a page at a time, regardless of whether you have read them yet. To list the names of the news items that you have not read yet, enter: news -n Each name is a file in the /usr/news directory. To display specific news items, enter: news newusers services This displays news about newusers and services, which are names listed by news -n. To display the number of news items that you have not read yet, enter: news -s To post news for everyone to read, enter: cp schedule /usr/news This copies the file schedule into the system news directory ( /usr/news) to create the file /usr/news/schedule. To do this, you must have write permission for /usr/news. FILES
System profile. News files. Indicates the last time news was read. SEE ALSO
Commands: pg(1) news(1)
Man Page