Linux hostid Command

In this tutorial we will learn how to use hostid command in linux. hostid command print numeric identifier of current host.

What is Linux hostid Command?

In this tutorial we learn how to use hostid command in Linux. hostid command print the numeric identifier for the current host.

hostid Command Syntax

hostid [OPTION]

Using hostid Command in Linux

Since there are no options or parameters to be passed to the hostid command, to use hostid, we can just run the command

hostid
007f0101

hostid Command Manual / Help

We can use man and info command to see the manual page of hostid command.

hostid command also have --help option to show list of options.

To open man page for hostid command we can use command below. To exit man or info page you can press q.

man hostid

Linux hostid command man page

To open info page for hostid command we can use command below.

info hostid

Linux hostid command info page

To open help page from hostid command we can run command below.

hostid --help

Linux hostid Command Source Code

You can find hostid command source code from the folowing repositories:

You can read tutorials of related Linux commands below:

Summary

In this tutorial we learn how to use hostid in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.