Need assistance: (using vim editor in linux) Based on the output, create a bash
ID: 3789974 • Letter: N
Question
Need assistance: (using vim editor in linux)
Based on the output, create a bash script that outputs the following information (between the equal signs, NOT including the equal signs) for the lowest ethernet interface to the screen. Your script must programmatically gather and output the information EXACTLY AS SHOWN BELOW and (no echo this and echo that).
======================================
Interface: AAA
MAC Address: BB:BB:BB:BB:BB:BB
IP Address: CCC.CCC.CCC.CCC
Subnet Mask: DDD.DDD.DDD.DDD
Received Bytes: EEEEEE
======================================
Explanation / Answer
ifconfig command gives all the required information about the Ethernet ports connected.
If you want lowest Ethernet information type ifconfig eth0
#!usr/bin/bash
echo `ifconfig`
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.