Directory : /home/aplikasiposinfo/tmp/ |
Current File : /home/aplikasiposinfo/tmp/find_big_files.sh |
#!/bin/bash # Set the minimum file size (e.g., 100M for 100 megabytes) MIN_SIZE="100M" # Set the target directory TARGET_DIR="/tmp" echo "Searching for files larger than $MIN_SIZE in $TARGET_DIR..." # Find and list large files find "$TARGET_DIR" -type f -size +$MIN_SIZE -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'