Changes

Jump to: navigation, search

Ops535 get device name

57 bytes added, 11:44, 11 September 2017
no edit summary
#! /bin/bash
# get all the NIC device name in the system
dev_names=$(/sbin/ifconfig | grep HWaddr| awk -F: '{print $1}'| sort -u # for centos7 replace HWaddr with flags 
# set a loop to loop through each device name
1,760
edits

Navigation menu