
Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
how to empty all logfiles
how to empty all logfiles
I'm learning ssh because of the bubba2
but can't find the command to empty all .log files. I know i'm not creating much space with it but i don't need the log file content when it is that old ...

Re: how to empty all logfiles
That is seldom needed, as most logging is done via a system called "logrotate", which takes care of log files not growing too big, and to remove old log files when needed.squadra wrote:I'm learning ssh because of the bubba2but can't find the command to empty all .log files. I know i'm not creating much space with it but i don't need the log file content when it is that old ...
Though if you feel you must, the quick and dirty way to truncate a file is as following:
Code: Select all
: > file