<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fhostname</id>
	<title>Comandos de la terminal/hostname - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fhostname"/>
	<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/hostname&amp;action=history"/>
	<updated>2026-04-07T08:44:08Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/hostname&amp;diff=5488&amp;oldid=prev</id>
		<title>Rrc en 19:16 29 may 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/hostname&amp;diff=5488&amp;oldid=prev"/>
		<updated>2014-05-29T19:16:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#hostname | hostname]]&lt;br /&gt;
&lt;br /&gt;
== hostname ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ~]# hostname --help&lt;br /&gt;
Usage: hostname [-v] {hostname|-F file}      set hostname (from file)&lt;br /&gt;
       domainname [-v] {nisdomain|-F file}   set NIS domainname (from file)&lt;br /&gt;
       hostname [-v] [-d|-f|-s|-a|-i|-y]  display formatted name&lt;br /&gt;
       hostname [-v]                         display hostname&lt;br /&gt;
&lt;br /&gt;
       hostname -V|--version|-h|--help       print info and exit&lt;br /&gt;
&lt;br /&gt;
    dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y&lt;br /&gt;
&lt;br /&gt;
    -s, --short           short host name&lt;br /&gt;
    -a, --alias           alias names&lt;br /&gt;
    -i, --ip-address      addresses for the hostname&lt;br /&gt;
    -f, --fqdn, --long    long host name (FQDN)&lt;br /&gt;
    -d, --domain          DNS domain name&lt;br /&gt;
    -y, --yp, --nis       NIS/YP domainname&lt;br /&gt;
    -F, --file            read hostname or NIS domainname from given file&lt;br /&gt;
&lt;br /&gt;
   This command can read or set the hostname or the NIS domainname. You can&lt;br /&gt;
   also read the DNS domain or the FQDN (fully qualified domain name).&lt;br /&gt;
   Unless you are using bind or NIS for host lookups you can change the&lt;br /&gt;
   FQDN (Fully Qualified Domain Name) and the DNS domain name (which is&lt;br /&gt;
   part of the FQDN) in the /etc/hosts file.&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ~]# hostname --version&lt;br /&gt;
net-tools 1.60&lt;br /&gt;
hostname 1.100 (2001-04-14)&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# cat /etc/hostname &lt;br /&gt;
Llawyr.linuxcabal.org&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# cat /etc/sysconfig/network&lt;br /&gt;
HOSTNAME=Llawyr.linuxcabal.org&lt;br /&gt;
NETWORKING=yes&lt;br /&gt;
CRDA_DOMAIN=MX&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ~]# hostname&lt;br /&gt;
Llawyr.linuxcabal.org&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ~]# hostname -s&lt;br /&gt;
Llawyr&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ~]# hostname -d&lt;br /&gt;
linuxcabal.org&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ~]# hostname -a&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# cat NuevoHostName &lt;br /&gt;
NuevoHostName.Imat.Com&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]#  hostname  -F NuevoHostName&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# hostname&lt;br /&gt;
NuevoHostName.Imat.Com&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# hostname Llawyr.LinuxCabal.org&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# hostname&lt;br /&gt;
Llawyr.LinuxCabal.org&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Comandos de la terminal]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>