Last login: 前回ログインした日時 from IPアドレス
FreeBSD 12.0-RELEASE (GENERIC) #0 r335510: Fri Jun 22 04:32:14 UTC 2018
Welcome to FreeBSD!
Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories: https://www.FreeBSD.org/security/
FreeBSD Handbook: https://www.FreeBSD.org/handbook/
FreeBSD FAQ: https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums: https://forums.FreeBSD.org/
Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with: pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.
Show the version of FreeBSD installed: freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages: man man
FreeBSD directory layout: man hier
Edit /etc/motd to change this login announcement.
Need to quickly empty a file? Use ": > filename".
-- Dru <genesis@istar.ca>
「Welcome to FreeBSD!」以降のメッセージはログインするたびに異なります。
ここはお好みになりますが、毎回これが表示されるのはうっとうしい気もします。わたしは、あまり表示したくないのです。
このメッセージを表示しないようにするには
/home/ユーザ/
に .hushlogin というファイルを置く。
/etc/login.conf
の
#
# This file controls resource limits, accounting limits and
# default user environment settings.
#
# $FreeBSD: releng/12.0/etc/login.conf 296723 2016-03-12 14:54:34Z kib $
#
# Default settings effectively disable resource limits, see the
# examples below for a starting point to enable them.
# defaults
# These settings are used by login(1) by default for classless users
# Note that entries like "cputime" set both "cputime-cur" and "cputime-max"
#
# Note that since a colon ':' is used to separate capability entries,
# a \c escape sequence must be used to embed a literal colon in the
# value or name of a capability (see the ``CGETNUM AND CGETSTR SYNTAX
# AND SEMANTICS'' section of getcap(3) for more escape sequences).
default:\
:passwd_format=sha512:\
:copyright=/etc/COPYRIGHT:\
:welcome=/etc/motd:\
:setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\
:path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\
:nologin=/var/run/nologin:\
FreeBSD 12.0-RELEASE (GENERIC) #0 r321309: 日時
Welcome to FreeBSD!
くらいにしておくと、わたし好みの Welcome メッセージになります。
3. tips を非表示にする
11.0 RELEASE 以前は、インストール時に game をインストールしていなければ、FreeBSD のヒント(tips)は出力されなかったのですが。
11.1 RELEASE 以降、インストールの項目にかかわらず表示されるようです。
抑止するには
~/.login
の
# $FreeBSD: releng/12.0/share/skel/dot.login 325815 2017-11-14 17:05:34Z trasz $
#
# .login - csh login script, read by login shell, after `.cshrc' at login.
#
# See also csh(1), environ(7).
#
# Query terminal size; useful for serial lines.
if ( -x /usr/bin/resizewin ) /usr/bin/resizewin -z
# Display a random cookie on each login.
if ( -x /usr/bin/fortune ) /usr/bin/fortune freebsd-tips