Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux log log content is too large, clear log content, do not delete file command

Shulou Source: shulou.com Published: 2022-06-03 03:14:25 11月17日 Update

There are three ways:

> cont.log # file character size is 0

Cat / dev/null > cont.log # file character size is 0

Tags: File character size content log three method command Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Apple Shulou Tech Info OPPO Reno Xiaomi