1.hostname
常用参数:
-s, --short short host name
-a, --alias alias names
-i, --ip-address addresses for the hostname
-f, --fqdn, --long long host name (FQDN)
-d, --domain DNS domain name
2。uname
常用参数:
-a, print all information, in the following order:
-s, print the kernel name
-n, print the network node hostname
-r, print the kernel release
-v, print the kernel version
-m, print the machine hardware name
-p, print the processor type
-i, print the hardware platform
-o, print the operating system
3。lsb_release
LSB是Linux Standard Base的缩写,lsb_release命令用来显示LSB和特定版本的相关信息,常用参数-a
4。whereis
查找执行命令的所在路径