Zi 字媒體
2017-07-25T20:27:27+00:00
在 Ubuntu 中如果需要自訂登入訊息,可以到 /etc/motd 加入你想要的資訊。
另外 /etc/motd 這個檔案是由 /etc/update-motd.d/ 目錄中的程式所產生的
/etc/update-motd.d(一般看到登入的系統資訊就是由 50-landscape-sysinfo 產生)
drwxr-xr-x 2 root root 4096 Oct 31 10:46 .
drwxr-xr-x 118 root root 12288 Dec 4 06:49 ..
-rwxr-xr-x 1 root root 1220 Apr 19 2012 00-header
-rwxr-xr-x 1 root root 1358 Apr 19 2012 10-help-text
lrwxrwxrwx 1 root root 46 Aug 13 14:12 50-landscape-sysinfo -> /usr/share/landscape/landscape-sysinfo.wrapper
-rwxr-xr-x 1 root root 149 Aug 22 2011 90-updates-available
-rwxr-xr-x 1 root root 299 Apr 12 2014 91-release-upgrade
-rwxr-xr-x 1 root root 129 Jun 16 16:28 95-hwe-eol
-rwxr-xr-x 1 root root 142 Aug 22 2011 98-fsck-at-reboot
-rwxr-xr-x 1 root root 144 Aug 22 2011 98-reboot-required
當然也可以自己定義,例如自訂一個 99-say-hi
#!/bin/bash
echo hi
Categories: Linux
分類
Android
AngularJS
API Blueprint
Chrome
Database
MySQL
DataStructure
Docker
Editor
Vim
Firefox
Git
GitLab
Google API
Hadoop
Language
Go
Java
JavaScript
jQuery
jQueryChart
Node.js
Vue
PHP
Laravel
ZendFramework
Python
Mac
Network
Cisco
DLink
Juniper
Oauth
Server
Apache
Share
Unix
FreeBSD
Linux
WebDesign
Bootstrap
CSS
HTML
Wordpress
Search
搜尋關鍵字:
寫了
5860316篇文章,獲得
23313次喜歡