Skip to content

This Bash script is designed to clear the contents of log files in a specified directory. It can be useful for periodically cleaning log files to prevent them from consuming too much disk space.

Notifications You must be signed in to change notification settings

Lalatenduswain/Apache-LAMPP-XAMPP-Log-File-Clearing-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Log File & MySQL Error Clearing Script for LAMPP

This Bash script is designed to clear the contents of log files in a specified directory. It can be useful for periodically cleaning log files to prevent them from consuming too much disk space.

Note: Make sure to have the necessary permissions and dependencies set up before running this script.

Usage

  1. Clone this repository or copy the script to your local machine.

  2. Navigate to the directory containing the script using the terminal.

  3. Make the script executable with the following command:

    chmod +x clear_logs.sh
  4. Run the script to clear log files in the specified directory:

    ./clear_logs.sh

Donations

If you find this script helpful and want to show your appreciation, you can donate via Buy Me a Coffee.

Disclaimer

Author: Lalatendu Swain | GitHub | Website

This script is provided as-is and may require modifications or updates based on your specific environment and requirements. Use it at your own risk. The authors of the script are not liable for any damages or issues caused by its usage.

About

This Bash script is designed to clear the contents of log files in a specified directory. It can be useful for periodically cleaning log files to prevent them from consuming too much disk space.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages