Login into your debian instance, virtual or physical.
Start terminal, I am on debian 12.6 and here is what my terminal looks like.
In the screenshot above ag is my username that I created and after the sign @ is agh, that is my machine name or computer name on my debian 12 instance running on hyper-v virtual machine.
other commands or syntax to vier host name, at the prompt type hostname
One more syntax is hostnamectl
to get bit more info about the system
information extracted from the Debian man pages here
Previous Post