【转】Linux下快速清空文件内容的三种方法
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
话说,我们想快速清空一个文件或者log的内容: 1、#echo "" > test.txt(文件大小被截为1字节) 2、# > test.txt(文件大小被截为0字节) 3、#cat/dev/null > test.txt(文件大小被截为0字节) |




A beautiful web dashboard for Linux
最近提交(Master分支:6 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)