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

  • Home
  • SEARCH
  • 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 7175297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:15:35+00:00 2026-05-28T16:15:35+00:00

I have to get the cpu usage on Linux from a file located on

  • 0

I have to get the cpu usage on Linux from a file located on my hard drive. But after some research about it, I didn’t find a proper file which informs me about the CPU usage.

The best solution would be to find the file which contains these information and updated frequently.

If you know one file which make this, it would be great, thank you.

  • 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-28T16:15:36+00:00Added an answer on May 28, 2026 at 4:15 pm

    This sort of information is available under the /proc filesystem. See man proc.

    In particular:

    • /proc/loadavg gives load averages;
    • /proc/stat gives information on the amount of time the system spent in user/kernel mode, etc (thanks @Mat!)
    • /proc/[pid]/stat contains information on CPU times for the given process.

    man proc will give further details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to get records from my MySQL DB where: sentto = $username OR
I have to get data from Oracle Table in which I have one datefield
i have to get static information from one 'module' to another. I'm trying to
I Have to get a movie from a PostgreSQL database that matches a given
I have a need to get the number of CPU cycles used by a
I am trying to get PowerShell to give me the RAM and CPU usage,
I have to run top in my machine (mac osx), and get the cpu
Is there any API by which we can get CPU or Memory usage of
I have two queries to get related tags from a mysql database, one works,
I'm experiencing some abnormally high CPU usage values when running a certain piece of

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.