GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Perché /etc/issue mi mostra Ubuntu e non Lubuntu?

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.


Ubuntu
  1. In che modo Linux gestisce più separatori di percorsi consecutivi (/home////nomeutente///file)?

  2. Ubuntu – /usr/bin/host non rileva le modifiche a /etc/hosts anche dopo il riavvio?

  3. Perché /bin/sh punta a /bin/dash e non a /bin/bash??

  4. Come monitorare i file /etc/shadow e /etc/passwd per le modifiche con Auditd?

  5. Perché find -exec mv {} ./target/ + non funziona?

Installa e configura StrongSwan VPN su Ubuntu 20.04

Perché /home/ è chiamato "casa" in Nautilus (e altri file manager, come Pcmanfm)?

Perché le utilità Webp basate su Ubuntu 14.04 non funzionano e mostrano un errore di libreria?

CentOS / RHEL:come recuperare dal file /etc/passwd cancellato

Comprendere i file /proc/mounts, /etc/mtab e /proc/partitions

Perché yum updateinfo non mostra tutti gli aggiornamenti?