in the shell
hname = `hostname` - the variable hname will be current hostname after shell runs this line
uname -n
in the shell
hname = `hostname` - the variable hname will be current hostname after shell runs this line
uname -n
转载于:https://my.oschina.net/u/138995/blog/185254