옵션
AI 프롬프트 목록 터미널/통역사 Bash 자동화 로그 클리너 생성기

Bash 자동화 로그 클리너 생성기

리눅스 시스템 관리자를 위해 지정된 스토리지 임계값 및 보존 기간을 충족하는 자동화 Bash 로그 정리 스크립트를 생성하며 오류 검사 및 실행 로깅 기능을 제공합니다.

프롬프트 내용 복사

Based on the log storage directory, disk usage warning threshold and log retention days I provide, generate a runnable Bash automation cleaning script for Linux. The script automatically traverses the directory to delete expired compressed log files, add disk space judgment logic, additionally clean uncompressed old logs when directory usage exceeds the threshold, also add basic error capture and execution record output, adapt to common CentOS and Ubuntu system environments.

복사

내가 제공한 로그 저장 디렉토리, 디스크 사용량 경고 임계값 및 로그 보존 일수를 바탕으로 리눅스에서 실행 가능한 Bash 자동화 정리 스크립트를 생성해 주세요. 스크립트는 디렉토리를 자동으로 순회하며 만료된 압축 로그 파일을 삭제하고 디스크 공간 판단 로직을 추가하며 디렉토리 사용량이 임계값을 초과했을 때 압축되지 않은 오래된 로그를 추가로 정리하고 기본 오류 캡처와 실행 기록 출력도 추가하며 일반적인 CentOS 및 Ubuntu 시스템 환경에 맞춰줍니다.

복사
의견 (0)
0/300

추천

Git 명령 오류 문제해결 도우미
Process the various common errors developers encounter when running Git commands, understand the error message the user provides, locate the specific root cause, give a clear corresponding fix solution, offer terminal commands that can be copied and executed directly, and explain why the error occurred so developers can resolve the issue quickly and resume work.
Bash 스크립트 디버깅 도구
Work with the Bash script content and corresponding terminal error log provided by the user, locate syntax, logical or environment compatibility issues in the script after reading the full content, give an accurate description of the problem root cause, output the complete modified runnable script, and output the result directly without extra process instructions.
Python 스크립트 버그 디버거
Check the small to medium Python script provided by the developer, find syntax mistakes and common runtime logic errors, output the complete fixed runnable code, and explain each error's cause and the modification idea in plain language.
Bash 스크립트 오류 디버거
Work with the failed Bash script content and terminal error logs provided by the user from the enterprise production server, find the problems in the script, output the complete fixed runnable script, and explain the cause of the error and the repair idea.
Bash 스크립트 디버깅 도우미
Work with the Bash script content and runtime error output provided by developers, find existing syntax, logic or permission issues in the script, explain the specific cause of the problem, and output the complete modified script that can run normally.
Linux 운영 에러 로그 진단 도구
Work through error log text exported by operations staff from a Linux server terminal, sort through error messages and context to pinpoint the specific root cause of the issue, then output executable fix steps adapted to the matching Linux distribution, keep the description clear and do not add extra irrelevant content.
OR