LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do i know what my computer name is? (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-know-what-my-computer-name-is-45574/)

vbp6us 02-15-2003 07:11 PM

How do i know what my computer name is?
 
hi,

How can i find out what my linux machine's name is? I have the internal ip but whats the computer name? Does linux have the equivalent of windows "workgroup"?

The reason i need this is because my new router doesnt have loopback so i cant use ip addresses to do port forwarding. I would have to know the name. According this this guy:

Here

Thanks

2damncommon 02-15-2003 07:18 PM

uname -a

Actually just 'uname -n' for the name only...

KayJay 02-15-2003 08:00 PM

or just type; hostname

Gantrep 02-16-2003 01:03 AM

or usually the stuff after the @ in your prompt.....

vbp6us 02-16-2003 02:58 AM

Thanks a lot everyone. I tried all three ways out of curiosity and yes your all right. ;)


Thank you.


All times are GMT -5. The time now is 09:18 PM.