The “uname -n” command is used to print the network node hostname of the system. When you run this command in a terminal or command prompt, it will output the hostname of the machine on the network.
For example, if the network node hostname of your system is “myhostname”, running “uname -n” would display “myhostname” as the output.
The “uname -n” command is often used to retrieve the hostname programmatically or as part of a script to identify the specific node or machine within a network.