Hi
i have linux-fedora10. the mpstat or iostat or sar command doesn't work on my linux.
Code:
[soltanloo@localhost 88-2-21]$ mpstat
bash: mpstat: command not found
how can i fix it ? do i need to install a package ? i'm beginer with linux. in fact i want to read cpu usage. for example with top command. i want to read it in a C program.
in fact i want to write the output of mpstat in a text file and then extract my information from it.
can anyone help me ?
and i have a another problem : how can i write output of mpstat to a tezt file ? i know this :
but it doesn't work good for top command.
i'll thank u for helping me.