IOriens / getSysInfo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intro

Get system info using syscalls in c library.

How to start

Prerequest:

  • Ubuntu 16.04
  • GCC installed
$ sudo chmod u+x test.sh
$ ./test.sh

Detail Explaination

CPU Info

user: normal processes executing in user mode

nice: niced processes executing in user mode

system: processes executing in kernel mode

idle: twiddling thumbs

REF

Linux下C语言获取目录中的文件列表

readdir() beginning with dots instead of files [duplicate]

I get implicit declaration of function strncmp

linux C语言获取系统内存信息

linux c程序获取cpu使用率及内存使用情况

About


Languages

Language:C 99.2%Language:Shell 0.8%