LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Do I delete/Clean Syslog?
#5
(08-20-2020, 04:55 PM)bigskill link Wrote: Thanks for replying but maybe you missed it
syslog is 42GB in size.
There is not enough room on the drive to make a copy.
That is not normal. You should open it in some way. There are many ways out here just be creative
  1. Make normal copy of it after purging, (few mb - few 100 mb) however this may not be safe because if you someway fail the purging You can't restore the file that you emptied
  2. If you are advanced enough use tools that do not require the file to be copied to RAM for example hex editor
  3. just make partitial copy of larger file "dd if=/var/log/syslog of=/home/yourusername/partitialsyslog bs=1M count=512" change count=x to get more or less megabytes and home/yourusername/partitialsyslog to change name and path.
Note that using commands and programs that you run without sudo only allows reading of logs not modifying them inĀ  any way, so this is safer (to leave sudo out)than using it when it's not necessary. Of course when you need it use it but read-only mode is safer for copying and accessing without the risk of damage.
Reply


Messages In This Thread
How Do I delete/Clean Syslog? - by bigskill - 08-19-2020, 10:08 PM
Re: How Do I delete/Clean Syslog? - by minesheep - 08-20-2020, 10:32 AM
Re: How Do I delete/Clean Syslog? - by bigskill - 08-20-2020, 04:55 PM
Re: How Do I delete/Clean Syslog? - by torreydale - 08-20-2020, 06:24 PM
Re: How Do I delete/Clean Syslog? - by minesheep - 08-20-2020, 08:17 PM
Re: How Do I delete/Clean Syslog? - by Moltke - 08-20-2020, 09:53 PM
Re: How Do I delete/Clean Syslog? - by bigskill - 08-22-2020, 12:22 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)