免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2964 | 回复: 15
打印 上一主题 下一主题

[FreeBSD] 怎么去掉这个东东 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-17 13:38 |只看该作者 |倒序浏览
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
2 [报告]
发表于 2009-03-17 13:45 |只看该作者
/etc/motd

论坛徽章:
0
3 [报告]
发表于 2009-03-17 13:47 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
4 [报告]
发表于 2009-03-17 14:15 |只看该作者
[~]$man motd
MOTD(5)                   FreeBSD File Formats Manual                  MOTD(5)

NAME
     motd -- file containing message(s) of the day

DESCRIPTION
     The file /etc/motd is normally displayed by login(1) after a user has
     logged in but before the shell is run.  It is generally used for impor-
     tant system-wide announcements.  During system startup, a line containing
     the kernel version string is prepended to this file.

     Individual users may suppress the display of this file by creating a file
     named ``.hushlogin'' in their home directories or through login.conf(5).

FILES
     /etc/motd         The message of the day.
     $HOME/.hushlogin  Suppresses output of /etc/motd.

EXAMPLES
     FreeBSD 2.1.6.1-RELEASE (GENERIC) #0: Sun Dec 29 03:08:31 PST 1996

     /home is full.  Please cleanup your directories.

SEE ALSO
     login(1), login.conf(5)

FreeBSD 7.1                    February 13, 1997                   FreeBSD 7.1

论坛徽章:
0
5 [报告]
发表于 2009-03-17 14:36 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
6 [报告]
发表于 2009-03-17 14:56 |只看该作者
rm -rf /etc/motd
echo 'update_motd="NO"' >>/etc/rc.conf

http://www.bsdlover.cn/html/65/n-665.html
搜索motd即可

论坛徽章:
0
7 [报告]
发表于 2009-03-17 15:09 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
8 [报告]
发表于 2009-03-17 18:33 |只看该作者
不一定要删除的,清空应该更好些。
个人意见: #true > /etc/motd

[ 本帖最后由 Supernal 于 2009-3-17 18:35 编辑 ]

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
9 [报告]
发表于 2009-03-17 18:50 |只看该作者
应该留着一点东西,否则多次登录时会找不到界线。

论坛徽章:
0
10 [报告]
发表于 2009-03-18 09:29 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP