cat /etc/issue
mi mostra
Ubuntu 13.04 \n \l
ma sono su Lubuntu 13.04. Qual è lo scopo di /etc/issue
? Inoltre, cosa significa \n \l
nell'output significa?
C'è anche issue.net
che ha solo Ubuntu 13.04
.
(So che echo $DESKTOP_SESSION
mi dà Lubuntu
.)
Risposta accettata:
Vedi la pagina man per issue
:
Il file /etc/issue è un file di testo che contiene un messaggio o un'identificazione del sistema da stampare prima della richiesta di accesso. Può contenere varie sequenze @char e \char, se supportate dal programma di tipo getty impiegato nel sistema.
Quindi il seguente mingetty
le sequenze possono essere utilizzate...
Tag Description \d insert current day (localtime), \l insert line on which mingetty is running, \m inserts machine architecture (uname -m), \n inserts machine’s network node hostname (uname -n), \o inserts domain name, \r inserts operating system release (uname -r), \t insert current time (localtime), \s inserts operating system name, \u The current number of users which are currently logged in \U Same as \u but inserts "n users" \v Inserts operating system version (uname -v).
Per quanto riguarda /etc/issue
va e mostra Ubuntu:il file non è correlato alla sessione desktop ed è un file di testo che puoi modificare manualmente con vi
o nano
.
Potrebbe essere considerato un bug se non lo hai modificato tu stesso, ma potrebbe anche essere considerato un file utente che dovrebbe essere lasciato all'utente per la modifica.