Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用此命令运行程序
command 2> sample.txt
现在该文件不断增长,命令将在 5-6 天内退出,我相信文件大小不会以 GB 为单位
我试过这个
echo "" > sample.txt但这对它没有任何影响,并且文件大小正在增长。
echo "" > sample.txt
我正在考虑在 1 小时后设置 cron 作业以清空其内容
我怎样才能清空文件的内容
尝试以下命令,这会将控制台输出写入文件。(您的控制台也将打印消息)。
command | tee -a file.log
你可以清空内容
> file.log
嗨,已经有几个带有 AdView 的应用程序,但是这一次,我看不出有什么问题。当我在图形布局中查看 Eclipse 中的文件时,它以正确的大小和位置显示 AdView 占位符,但显示错误消息:无法初始化 AdView。必需的 XML 属性,缺少“adSize”。
请