$ whatis hostname

hostname - set or print name of current host system

How to use the hostname command to get or set the hostname?

# hostname

MySolaris

# hostname NewName

# hostname

NewName

# hostid

00c6ea02

# hostname MySolaris

# hostid

00c6ea02

# hostname

MySolaris


Please click on " man hostname" to see the Manual Page for this command.


Previous Home Page Next



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2024 MyWebUniversity.com ™