How to Check Hostname of Your Linux Server..? | Secure 2 Cyber

Опубликовано: 11 Май 2026
на канале: Secure2Cyber
6
like

In this video, you’ll learn how to check the hostname of your Linux system or server using a simple command.
The hostname is the name assigned to your computer on a network — used to identify your device across systems, servers, and networks.

🖥️ Command Used:

hostname


💡 Examples:

hostname


➡️ Displays the system’s current hostname.

To check detailed information like domain and FQDN (Fully Qualified Domain Name):

hostname -f


To view all hostname-related configurations:

hostnamectl


📘 Explanation:

hostname → Prints the system name.

hostnamectl → Shows OS info, kernel version, and hostname details.

You can also change the hostname using:

sudo hostnamectl set-hostname newname


📺 Channel: Secure2Cyber
Daily short videos on Linux Commands, Windows Tips, and Cybersecurity Awareness.
Subscribe to @Secure2Cyber and grow your Linux and Cybersecurity skills!

📲 Follow Secure2Cyber:
🔹 Instagram: @secure2cyber

🔹 Facebook: @secure2cyber

🏷️ Hashtags:

#linux #hostname #linuxcommands #secure2cyber #linuxbasics #ubuntu #servermanagement #learnlinux #cybersecurity #techshorts #systemadmin