How to Empty Log Files

YunoHost version: 11.1.18 (stable)
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain:
I have enabled root access

Description of my issue

How do I empty all log files? There are so may files with so much of history it gets hard to look.

I tried to delete all the files in /var/log dir but my attempt broke YunoHost so I had to restore from a backup.


Did you try the naive approach ??

sudo cp whatever.log # just in case
sudo echo  > whatever.log

Not sure why you would want to look at them … Nobody looks at all the log files without looking for something specific …

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.