Sanjay Dixit
How would you truncate large growing file to 100 Mb file size only and how would you keep such files just for last 3 days in Linux?
By Sanjay Dixit in Operating Systems on Dec 16 2013
  • Mono Log
    Jan, 2017 5

    I use to commends: find /path/to/files* -mtime +3 -exec rm {} \; truncate -s 100 MB /path/to/files*

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS