I am creating Adobe AIR Application (for Windows, Linux and MAC), which show machine's Internal IP, External IP and Host Name. I've done successfully on Windows. I got host name on Windows by opening the c:\windows\system32\hostname.exe application using the Native for process.
But I don't know that such type of hostname application file exists in Linux or not? If it really exists, then what is its path? How to get host name in Linux through opening any executable file or through any bash command?
Thanks in advance.
The best idea is to use
'$ uname -n'
after using
'$ uname --help'
P.S.: and yes,
$ which uname
/bin/uname