wlly-lzh
2023-07-31 01:05 deepin
make xxx > 记录.txt
xxx是操作,>是重定向符号。
Reply Like 2 View the author
make xxx > 记录.txt
xxx是操作,>是重定向符号。
也可以这样
make xxx | tee 记录.txt | cat
这样可以同时记录和现实
命令末尾加
> ./xxx.txt
一般就会将输出信息保存到指定文件里
也可以这样
make xxx | tee 记录.txt | cat
这样可以同时记录和现实
后面的 | cat其实不用
cmake xxx > xxx.log 2>&1 加上 2>&1
吧,表示将标准错误输出(文件描述符2)重定向到与标准输出相同的地方(即同样写入到文件中)。
Popular Ranking
ChangePopular Events
More
如题,因为有的时候求助他人时需要给输出信息,但是直接截屏太麻烦了(而且ssh有行数限制)
不清楚怎么搞