系統版本
cat /etc/issue
顯示的訊息檔 cat /etc/motd
在/etc/update-motd.d/下 依照前面的號碼作優先順序
===========================
drwxr-xr-x 2 root root 4096 2010-08-03 12:50 .
drwxr-xr-x 79 root root 4096 2010-08-09 13:53 ..
-rwxr-xr-x 1 root root 57 2010-04-23 17:45 00-header
-rwxr-xr-x 1 root root 248 2010-04-23 17:45 10-help-text
-rwxr-xr-x 1 root root 65 2010-04-14 04:45 20-cpu-checker
lrwxrwxrwx 1 root root 46 2010-08-03 12:50 50-landscape-sysinfo -> /usr/share/landscape/landscape-sysinfo.wrapper
-rwxr-xr-x 1 root root 71 2010-04-14 04:45 90-updates-available
-rwxr-xr-x 1 root root 61 2010-04-24 03:13 91-release-upgrade
-rwxr-xr-x 1 root root 69 2010-04-14 04:45 98-reboot-required
-rwxr-xr-x 1 root root 261 2010-04-23 17:45 99-footer
===========================
在這裡建立一個檔案,在登入時顯示訊息
sudo nano 99-zhi
================
#!/bin/bash (代表要使用bash
echo -e '\E[37;32m' (更改顏色
echo "hi av8d" (顯示訊息
tput sgr0 (切換回去
================
沒有留言:
張貼留言