Untitled Document
hostname Command

Displays the system host name

Example 1 -

Run below hostname command

   hostname    

Example 2 - with ( -v ) option

hostname command with -v option dispalys version information on standard o/p

   hostname -v  

Example 3 - with ( -i ) option dispalys ip address

hostname command with -i option displays ip address .

   hostname -i 
   o/p - 10.124.11.7

Example 4 -

hostname command with -d option displays the name of the DNS Domain

   hostname -d 
Untitled Document