每天一點Linux---關於/etc/issue檔案和自訂登入提示

來源:互聯網
上載者:User


每天一點Linux---關於/etc/issue檔案和自訂登入提示 man手冊對/etc/issue檔案的描述是:  www.2cto.com        The file /etc/issue is a text file which contains a message or system identification to be printed before the login prompt. It may contain various @char and \char sequences, if supported by getty.       如上所述,修改/etc/issue檔案可以達到修改登入提示的作用。修改並儲存該檔案之後,重啟,重啟完成之後,按按鍵組合Ctrl+Alt+F1進入終端模式,你就可以看到修改之後的提示了。       /etc/issue - escape code       The issue-file (/etc/issue or the file set with the -f option) may contain certain escape codes to display the system name, date and time etc. All escape codes consist of a backslash (\) immediately followed by one of the letters explained below.       \b : Insert the baudrate of the current line.       \d : Insert the current date.       \s : Insert the system name, the name of the operating system.       \l : Insert the name of the current tty line.       \m : Insert the architecture identifier of the machine, eg. i486       \n : Insert the nodename of the machine, also known as the hostname.       \o : Insert the domainname of the machine.       \r : Insert the release number of the OS, eg. 1.1.9.       \t : Insert the current time.       \u : Insert the number of current users logged in.       \U : Insert the string "1 user" or " users" where is the number of current users logged in.       \v : Insert the version of the OS, eg. the build-date etc. 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.