About 25,500,000 results
Open links in new tab
  1. Linux Find Out My Machine Name/Hostname - nixCraft

    Feb 25, 2025 · How to check what is the hostname of the Linux system? You need to use the hostname command or hostnamectl command. You can also type cat /etc/hostname to view …

  2. hostname command in Linux with examples - GeeksforGeeks

    Jul 19, 2024 · hostname command in Linux is used to obtain the DNS (Domain Name System) name and set the system’s hostname or NIS (Network Information System) domain name. A …

  3. How to get the hostname from /etc/hostname & DNS domain name?

    To avoid your server returning a long string that combines your IPv4 and IPv6 addresses, use this programmatically in a bash script: LOCALIP=$(hostname -I | awk '{print $1}') Or type this on …

  4. How To Find Hostname In Linux - OSTechNix

    Jan 22, 2021 · In this brief guide, we will learn about various commands to find hostname in Linux operating systems. 1. Find Hostname in Linux with hostname command. 2. Display Hostname …

  5. How to get hostname from IP (Linux)? - Stack Overflow

    The output of nslookup is piped into the grep command, which is used to extract the line containing the string 'name ='. Finally, the awk command is used to extract the last field in the …

  6. 3 ways to check hostname in Linux - sslhow.com

    Apr 16, 2022 · Check hostname with hostname command in Linux The best way to check your hostname is to use the ‘hostname’ command. This command will print out the hostname of the …

  7. How do I find out my computer network name (Linux)?

    Feb 18, 2011 · On a computer that is using the University's DNS servers, you can try ping -a x.x.x.x (Windows) or host x.x.x.x (Linux). If your University's DNS servers are not set up for …

  8. How to show the host name in Linux commandline prompt

    Jul 24, 2015 · Look into your ~/.bashrc or ~/.profile, there may be a commented prompt setup that should do what you want, like this one on our infra: Which looks like: Or if you plan on logging …

  9. How to find out server name? - California Learning Resource …

    Jan 12, 2025 · To find out the server name, you can use the following methods: Command Line: Use the hostname command in a terminal or command prompt. Server Management Tools: …

  10. Get the Hostname From an IP Address in Linux - Baeldung

    Mar 18, 2024 · When we need to get the hostname of a machine on the same LAN and without a reverse DNS, we can use commands like nmblookup, nbtscan or avahi-resolve. The first two …

  11. Some results have been removed
Refresh