<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

Menga bash skriptini yozing va tanlangan jilddagi eng eski fayllar va kichik jildlarni o'chirib tashlang. Skriptni eng eski fayldan boshlang va tanlangan jild 10 Gb dan kichik bo'lmaguncha takrorlang.<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Bu bash skripti sizning talablaringizni qondiradi: #!/bin/bash # Set the target folder size limit limit=10485760 # 10 GB in KB # Prompt the user to enter the target folder read -p "Enter the path of the target folder: " folder # Check if the entered folder exists if [! -d "$folder" ]; then echo "Error: The specified folder does not exist. " exit 1 fi # Calculate the current size of the folder size=$(du -s "$folder" }} awk '{print $1}') # Loop until the folder size is less than the limit while [ $size - $limitest file ]; do # Find the oldest file in the oldest folder=${size - $limitest file}; do # Find the oldest file in the oldest folder=${size - $limitest file};<|eot_id|>