Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 210 Bytes

File metadata and controls

10 lines (8 loc) · 210 Bytes

Better way to truncate files

Its better to truncate files with

> file

instead of rm -rf & touch file or cat /dev/null > file as this way enables us to preserve file ownership and permissions