This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Espacio en disco: | |
df -h | |
du -aBM 2>/dev/null | sort -nr | head -n 50 | more | |
du -h | grep [0-9]\.*[0-9*]G | |
du --max-depth 1 / | sort -n | |
Busca archivos abiertos por los procesos en ejecucion o sockets | |
lsof / | awk '{if($7 > 1048576) print $7/1048576 "MB" " " $9 }' | sort -n -u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A COLLECTION OF REDIS-CLI COMMANDS | |
PRODUCTION SAFE COMMANDS | |
Key pattern size sum | |
redis-cli -n ##DATABASE_ID## -p ##REDIS_PORT## --scan --pattern "*##PATTERN##*" | xargs -L 1 redis-cli -n ##DATABASE_ID## -p ##REDIS_PORT## --raw STRLEN | awk '{s+=$1} END {print s}' | |
Delete key pattern | |
redis-cli -n ##DATABASE_ID## -p ##REDIS_PORT## --scan --pattern "*##PATTERN##*" | xargs -L 10 redis-cli -n ##DATABASE_ID## -p ##REDIS_PORT## DEL | |
Delete hashmap without burning the database |