Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to clear the contents of a file in linux

Shulou Source: shulou.com Published: 2022-06-01 14:50:04 09月12日 Update

This article shows you how to clear file content in linux, concise and easy to understand, absolutely can make your eyes shine, through the detailed introduction of this article I hope you can gain something.

$ : > filename $ > filename $ echo "" > filename $ echo > filename $ cat /dev/null > filename The above is how to empty the contents of a file in Linux. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.

Tags: Content documents skills knowledge conciseness brevity that is articles more articles industries information channels channels one bright reserve Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Microsoft Huawei MariaDB Apple