Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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`

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote