What is hostname command used for in Linux?
Experience Level: Junior
Tags: Linux
Answer
The hostname command is used to obtain the Domain Name System (DNS) name and set the system’s hostname or Network Information System (NIS) domain name. A hostname is a name which is given to a computer and it attached to the network. Its main purpose is to uniquely identify over a network.
Related Linux job interview questions
What is userdel command used for in Linux?
Linux JuniorWhat is useradd command used for in Linux?
Linux JuniorWhat is unzip command used for in Linux?
Linux JuniorWhat is zip command used for in Linux?
Linux JuniorWhat is echo command used for in Linux?
Linux Junior