Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7686545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:30:18+00:00 2026-05-31T19:30:18+00:00

ifconfig eth1 | grep -v grep | grep bytes | awk ‘{print $2}’ |

  • 0

ifconfig eth1 | grep -v grep | grep bytes | awk ‘{print $2}’ | cut -d ‘:’ -f 2
3527285587

how do I divide the output by 1024/1024 and get the result ..

I am actually trying to calculate the RX bytes and TX Bytes in MB’s as given in ifconfig output e.g
RX bytes:3675341313 (3.4 GiB) TX bytes:3401591008 (3.1 GiB)

if the NIC is on 100Mb/s ( 12.MB/s) does it mean it can send and receive 12.MB/s at any given point ?? that’s what I think and how to check that real time ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:30:20+00:00Added an answer on May 31, 2026 at 7:30 pm

    You could pipe it to “bc” provided it is installed, eg:

    echo "$(ifconfig eth1 | grep -v grep | grep bytes | awk '{print $2}' | cut -d ':' -f 2) / 1024 / 1024" | bc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get the following formatted output out of ifconfig: en0: 10.52.30.105
ifconfig -output is somewhat messy thing to look at. When I saw the nice
I can run this command fine, with the output I want: ifconfig eth0 |
I am getting output from my linux box running the ifconfig command. I do
I use ifconfig command with awk to catch system's ip addresses $ ifconfig |
Go to ifconfig.me , now run curl ifconfig.me. You get different responses. How does
I am trying to parse some data from ifconfig output with sed, but I
the ifconfig output of my machine is the following: :~ shell$ ifconfig en0 en0:
While I try the following: system( ifconfig -a | grep inet | sed 's/\\([
On Solaris, is there a command that I can run to get the MAC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.