Linux 中 /usr/bin/time -f "%U" -a -o data/TestLog100.txt

/usr/bin/time -f "%U" -a -o data/TestLog100.txt

-f
“%U”
-a
-o
的含义分别是什么呀?

在linux下敲 man time, 里面有详细的说明。

freebsd的命令是这样的:
-o 是指输出到文件
-a 是指以追加方式写到文件末尾

使用 man time,查看 time 命令的手册

U Total number of CPU-seconds that the process used directly (in user mode), in seconds.