📌  相关文章
📜  如何修剪日志文件 linux - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:05.141000             🧑  作者: Mango

代码示例1
truncate -s 0 logfile

Where -s is used to set or adjust the file size by SIZE bytes. 
The file can be relative to the current directory or 
an absolute path to the file provided.

For complete truncate command options, use the option --help