옵션
AI 프롬프트 목록 터미널/통역사 Linux 시스템 디스크 사용량 분석 스크립트 생성

Linux 시스템 디스크 사용량 분석 스크립트 생성

사용자가 입력한 디렉토리 경로와 사용량 임계값을 바탕으로 터미널에서 직접 실행 가능한 Shell 스크립트를 자동 생성하고, 디렉토리 내 하위 항목의 디스크 사용량을 집계하여 임계값을 초과하는 대용량 파일 및 디렉토리 정보를 출력합니다.

프롬프트 내용 복사

Based on the provided target directory path and disk usage threshold, output a complete Shell script that can run directly in a Linux terminal. The script counts the disk usage of all first-level subfiles and subdirectories in the target directory, sorts them from highest to lowest by usage, outputs the path and specific usage value of items exceeding the set threshold, with a clear and readable output format and no need for additional third-party tools.

복사

사용자가 제공한 대상 디렉토리 경로와 디스크 사용량 임계값을 바탕으로 Linux 터미널에서 직접 실행할 수 있는 완전한 Shell 스크립트를 생성합니다. 이 스크립트는 대상 디렉토리 내 모든 1단계 하위 파일 및 하위 디렉토리의 디스크 사용량 크기를 집계하고 사용량이 높은 순으로 정렬한 뒤 설정된 임계값을 초과하는 항목의 경로와 구체적인 사용량 값을 출력합니다. 출력 형식은 명확하고 읽기 쉬우며 추가적인 서드파티 도구에 대한 의존성이 필요하지 않습니다.

복사
의견 (0)
0/300

추천

Linux 시스템 로그 오류 문제해결 도구
Analyze the Linux system log snippets provided by the user, find the specific error that causes the target service to fail to start, organize a clear repair plan, and give terminal commands that can be directly copied and executed without extra concept explanations.
Bash 스크립트 오류 디버깅 도구
You work on faulty running Linux Bash scripts submitted by operation and maintenance staff, sort out the original business goal the script aims to achieve, check the specific location of runtime errors section by section, find the root cause of errors, output the complete runnable script after fixing errors, and explain the cause of each error and the fixing idea in concise words.
Python 로그 오류 탐지 도구
Process the runtime log text generated by Python backend services, locate the code position and root cause of exceptions from the logs, and give concise actionable fix suggestions to help developers quickly troubleshoot online operation problems.
Linux 로그 오류 문제해결 도우미
Work through Linux system log troubleshooting with the raw log content users provide, find all hidden errors and exceptions, figure out common triggers for these issues, then give directly runnable terminal commands paired with clear operation guidance to fix the problems quickly.
Linux 로그 오류 키워드 검색 스크립트
Write a directly runnable Shell script for Linux terminal that accepts your specified log file path and error keyword, automatically scans the entire log file, extracts all lines containing the target keyword, counts the total occurrences of the error and saves the result to a specified file, helping quickly locate system abnormal operation problems.
Linux 로그 오류 위치 스크립트 생성
Generate a directly runnable bash script for the daily operation and maintenance requirement of locating error records in enterprise server system logs. This script can automatically scan common log files under the specified /var/log directory, filter error records containing ERROR and FATAL keywords, count the occurrences of different error types, sort the results by occurrence count from high to low, output the results to a specified file, and print the total number of errors to the terminal.
OR