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

Published: 29 October 2025
on channel: 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


On this page of the site you can watch the video online How to Check Hostname of Your Linux Server..? | Secure 2 Cyber with a duration of hours minute second in good quality, which was uploaded by the user Secure2Cyber 29 October 2025, share the link with friends and acquaintances, this video has already been watched 6 times on youtube and it was liked by like viewers. Enjoy your viewing!