Trương Duy Bằng
New member
How do I clear the contents of a file in Linux?
Answer
5 Ways to Empty or Delete a Large File Content in Linux
Answer
5 Ways to Empty or Delete a Large File Content in Linux
- Empty File Content by Redirecting to Null. …
- Empty File Using ‘true’ Command Redirection. …
- Empty File Using cat/cp/dd utilities with /dev/null. …
- Empty File Using echo Command. …
- Empty File Using truncate Command.