How to output time output to file ?
# time mpstat
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 18 15 1633 104 99 133 4 6 16 0 937 6 5 23 65
1 17 17 1508 154 150 134 3 6 16 0 932 6 4 23 67
2 17 17 1868 167 162 134 4 6 17 0 937 7 6 25 63
3 18 10 1054 825 616 109 3 5 16 0 929 5 4 15 76
real 0m0.02s
user 0m0.01s
sys 0m0.01s
I want output real, user, sys to file.