💻 Software
How do erase the contents of a error.log file but keep the file intact
Fresh7 days ago
Mar 15, 202648313 viewsConfidence Score0%
0%
Problem
I want to erase the contents of the file error.log (nginx error log file), but I don't want to actually delete the file. is this possible? running ubuntu
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do erase the contents of a error.log file but keep the file intact
Low Risk
You can use this: (typed just like that - an empty output redirection) or
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix