Last active
July 20, 2021 15:12
-
-
Save AngelKrak/8c6878060eee0f366f0b129b05f97dc3 to your computer and use it in GitHub Desktop.
Revisar y Liberar espacio en servidor VPS
This file contains 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
Referencias: | |
https://voidnull.es/liberar-espacio-servidor-cloud-vps/ -> Server (Lo mismo que el de abajo pero mas bonito) | |
https://usuariodebian.blogspot.com/2015/11/liberar-espacio-en-disco-duro.html?m=1 -> Server | |
https://docs.bluehosting.cl/troubleshooting/servidores/guia-para-solucionar-el-problema---la-particion-root-esta-llena.html -> Server | |
https://www.hostinet.com/formacion/hosting-alojamiento/hosting-lleno-que-puedo-borrar-para-liberar-espacio-en-mi-hosting/ -> CPanel | |
Revisar tamaño de carpetas | |
du -sch --exclude=/proc /* | |
du -sch /root/* | |
Agrega "grep" al final para filtrar solo los elementos grandes | |
|grep "G" | |
Eliminar archivos o carpetas recursivamente / forzado sin pedir confirmación | |
rm -Rf /folder | |
rm -f /file.txt | |
### SALIDA DE COMANDO "du -sch" ### | |
Vista de / (Raiz) | |
0 /aquota.group | |
0 /aquota.user | |
6.9G /backup | |
0 /bin | |
289M /boot | |
0 /dev | |
168K /error_log | |
61M /etc | |
14G /home | |
0 /lib | |
0 /lib64 | |
16K /lost+found | |
4.0K /media | |
4.0K /mnt | |
du: cannot access ‘/proc/28942/task/28942/fd/4’: No such file or directory | |
du: cannot access ‘/proc/28942/task/28942/fdinfo/4’: No such file or directory | |
du: cannot access ‘/proc/28942/fd/4’: No such file or directory | |
du: cannot access ‘/proc/28942/fdinfo/4’: No such file or directory | |
0 /proc | |
0 /quota.group | |
12K /quota.user | |
4.0K /razor-agent.log | |
152G /root | |
17M /run | |
0 /sbin | |
0 /scripts | |
4.0K /srv | |
4.1G /swapfile1 | |
0 /sys | |
177G total | |
Vista de /root | |
5.5M /root/bin | |
4.0K /root/cloudflare_ips | |
16K /root/cpanel3-skel | |
152G /root/error_log | |
8.0K /root/install.sh | |
12K /root/iptables.orig.2020-09-18 | |
12K /root/iptables.orig.2020-09-29 | |
12K /root/iptables.post | |
4.0K /root/legacy_ea3_distiller_files-1588866503.tar.gz | |
4.0K /root/perl5 | |
304K /root/tmp | |
152G total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment