• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

How to get infomations of Unix system?

I want APIs for getting informations of system (for general version). Such as the CPU type, number of memory, harddisk type, moniter type, CDROM type, even mouse type and keyboard type.
0
buct495120
Asked:
buct495120
  • 4
  • 3
1 Solution
 
ahoffmannCommented:
which OS?
0
 
fire85Commented:
What version of UNIX are you running. I know of differing commands based on the platform.
0
 
buct495120Author Commented:
Edited text of question.
0
2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

 
buct495120Author Commented:
Edited text of question.
0
 
ahoffmannCommented:
> CPU type
uname -m
> moniter type
impossible

for the others check in /proc
0
 
buct495120Author Commented:
APIs for C program. Not command.
0
 
buct495120Author Commented:
APIs for C program. Not command.
0
 
ahoffmannCommented:
there is no general API for UNIX, 'cause this depends on hardware and OS. You need to use the machines proprietary libs, i.e. /proc filesystem on Linux and FreeBSD, or statvfs(), sysfs(), sysconf() on Solaris, etc. etc.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now