Linux shell Command 1, linuxshell command
1 [root @ hadoop-namenode-1 iebd] cd/filename jump to the filename folder
2 [root @ hadoop-namenode-1 iebd] ls displays all files and folders under the Directory
3 [root @ hadoop-namenode-1 iebd] ifconfig to view Nic information, including IP, subnet mask, MAC Address [to view a specific Nic information, add Nic name after it, for example, ifconfig eth0]
4. View DNS configuration information and save it in/etc/resolv. conf, jump to the/etc directory, and use the cat command to open resolv. the conf file will contain the nameserver ***. ***. ***. * ** DNS address
5 view the specific configuration information of each Nic in the/etc/sysconfig/network-scripts folder, such as eth1 configuration information in the ifcfg-eth1, open the file to see
DEVICE = eth1 // DEVICE name
HWADDR = 0C: C4: 7A: 18: 8C: 07 // MAC address
TYPE = Ethernet // Ethernet Card
UUID = 8570239f-a36e-4181-b7cd-acd86de6985b
ONBOOT = yes
NM_CONTROLLED = yes
IPV6INIT = no
USERCTL = no
BOOTPROTO = static
PEERDNS = yes
PEERROUTES = yes
IPADDR = 192.168.99.30 // ip address
NETMASK = 255.255.255.0 // Subnet Mask
GETWAY = 192.168.99.1 // gateway address