1news(1)                          User Commands                         news(1)
2
3
4

NAME

6       news - print news items
7

SYNOPSIS

9       news [-a] [-n] [-s] [items]
10
11

DESCRIPTION

13       news  is  used  to keep the user informed of current events. By conven‐
14       tion, these events are described by files in the directory /var/news.
15
16
17       When invoked without arguments, news prints the contents of all current
18       files  in /var/news, most recent first, with each preceded by an appro‐
19       priate header. news stores the ``currency'' time  as  the  modification
20       date of a file named .news_time in the user's home directory (the iden‐
21       tity of this directory is determined by the environment variable  $HOME
22       ); only files more recent than this currency time are considered ``cur‐
23       rent.''
24

OPTIONS

26       -a      Print all items, regardless of  currency.  In  this  case,  the
27              stored time is not changed.
28
29
30       -n      Report  the  names  of the current items without printing their
31              contents, and without changing the stored time.
32
33
34       -s      report how many current items  exist,  without  printing  their
35              names  or  contents, and without changing the stored time. It is
36              useful to include such an invocation of news in  one's  .profile
37              file, or in the system's /etc/profile.
38
39
40
41       All  other  arguments are assumed to be specific news items that are to
42       be printed.
43
44
45       If a delete is typed during the printing of a news item, printing stops
46       and  the  next item is started. Another delete within one second of the
47       first causes the program to terminate.
48

ENVIRONMENT VARIABLES

50       See environ(5) for a description of the LC_CTYPE  environment  variable
51       that affects the execution of news.
52

FILES

54       /etc/profile
55
56
57       /var/news/*
58
59
60       $HOME/.news_time
61
62

ATTRIBUTES

64       See attributes(5) for descriptions of the following attributes:
65
66
67
68
69       ┌───────────────────────────────────────────────────────────┐
70ATTRIBUTE TYPE                ATTRIBUTE VALUE              
71       │Availability                  SUNWesu                      │
72       │CSI                           Enabled                      │
73       └───────────────────────────────────────────────────────────┘
74

SEE ALSO

76       profile(4), attributes(5), environ(5)
77
78
79
80SunOS 5.11                        20 Dec 1996                          news(1)
Impressum