为什么time命令无法重定向?# Unix - 噫吁兮,危乎高哉
v*t
1 楼
我用$>time cat filename > test.dat时
test.dat的内容是 cat filename 的结果。
但time的结果还是显示在终端上,而没有输入到filename中。
另外我用$>time command 〉tmp 时,tmp内容为空,time
的结果显示在终端上
test.dat的内容是 cat filename 的结果。
但time的结果还是显示在终端上,而没有输入到filename中。
另外我用$>time command 〉tmp 时,tmp内容为空,time
的结果显示在终端上