エディタを使って、/etc/motd ファイルをオープンします。
テキストを編集して、スペース、タブ、復帰改行を含めて、ユーザーログインプロセスの一部として表示されるメッセージを挿入します。
ファイルをクローズして変更結果を保存します。
/etc/motd の内容を表示することによって、変更を確認します。
$ cat /etc/motd Welcome to the UNIX Universe. Have a nice day.
デフォルトの本日のメッセージは、Solaris ソフトウェアのインストール時に提供されます。メッセージの内容は次のような SunOS バージョン情報です。
$ cat /etc/motd Sun Microsystems Inc SunOS 5.6 Generic August 1997
次に編集後の /etc/motd ファイルの例を示します。このファイルは、ログインする各ユーザーに対してシステムの利用度に関する情報を提供します。
$ cat /etc/motdThe system will be down from 7:00 a.m to 2:00 p.m.on Saturday, August 5, for upgrades and maintenance. Do not try to access the system during those hours. Thank you...