hostname on Kali Linux

hacktheworld

Active Member
Joined
Mar 28, 2023
Messages
192
Reaction score
74
Credits
1,462
I have typed on the terminal "sudo nano /etc/hosts" to check the host name on Kali Linux:
In the attached screenshot the output, it is correct?
 

Attachments

  • Screenshot_2024-10-07_05-50-33.png
    Screenshot_2024-10-07_05-50-33.png
    155.7 KB · Views: 61
Last edited:


Your command is good for editing the hosts file, but to check the hostname, use hostname or hostnamectl. They’ll show you the current hostname directly.
 
@hacktheworld -

1. What is the output of
Code:
cat /etc/hostname

2. and what is showing in your Terminal prompt

Cheers

Wizard
 
Last edited:

Members online


Top