
これは、Ubuntu が保証とヘルプの提案について表示するメッセージです。
確認したいのは、アップデートのバージョンとステータスだけです。
実際、表示する独自のメッセージを作成する方法を誰かが教えてくれるとありがたいです。
答え1
探しているテキストはここにあります
/etc/legal
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
これを編集する前に:私の知る限り、これはログインするユーザーごとに1回表示されます。ファイルがある場合
~/.cache/motd.legal-displayed
表示されません。作成するだけで消えます。最も簡単な方法は、次のコマンドを実行することです。
touch ~/.cache/motd.legal-displayed
独自のメッセージを追加したい場合は、ファイルを追加することができます
/etc/update-motd/
現在、次のものを保有します:
00-header 90-updates-available 98-fsck-at-reboot
10-help-text 91-release-upgrade 98-reboot-required
ファイル名はアルファベット順に実行され、ファイル名はそれが何を示しているかを示しています。00-header は「Welcome...」というテキストです。10-help-text は、Ubuntu ドキュメントへの URL などを表示します。