[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previa | Próxima revisiónAmbos lados, revisión siguiente | ||
es:howtos:general_admin:free_your_space [2019/02/08 00:28 (UTC)] – slackwarespanol | es:howtos:general_admin:free_your_space [2019/02/08 11:23 (UTC)] – [/tmp directory] slackwarespanol | ||
---|---|---|---|
Línea 5: | Línea 5: | ||
====== Libera tu espacio ====== | ====== Libera tu espacio ====== | ||
A veces puede encontrarse en una situación en la que de repente se encuentra con un mensaje que le dice que no hay más espacio libre en su sistema. Puede haber algunas cosas que puedes hacer para liberar algo. | A veces puede encontrarse en una situación en la que de repente se encuentra con un mensaje que le dice que no hay más espacio libre en su sistema. Puede haber algunas cosas que puedes hacer para liberar algo. | ||
- | ==== /tmp directory | + | ==== /tmp ==== |
- | The first reason can be a /tmp directory which doesn’t get cleaned | + | La primera razón puede ser un directorio |
- | automatically. I create my own temporary files in my home directory so I | + | |
- | can safely delete the contents of /tmp every time I shut down the system. | + | |
- | You don’t have to do it manually, though. | + | |
- | + | ||
- | The following command should be placed in ''/ | + | |
<file bash / | <file bash / | ||
/ | / | ||
</ | </ | ||
- | This will delete ALL the files in the /tmp directory every time the system | + | Esto eliminará TODOS los archivos en el directorio |
- | shuts down, so be careful what you put there! | + | |
- | + | ||
- | The '' | + | |
- | need to perform any other tasks on shutdown, you can put them here. As | + | |
- | this file doesn’t exist on the default installation of Slackware, | + | |
- | need to create it first and make it executable: | + | |
< | < | ||
root@darkstar# | root@darkstar# | ||
Línea 31: | Línea 18: | ||
< | < | ||
- | Remember to test your commands well before you include them in the | + | Recuerde probar sus comandos bien antes de incluirlos en el archivo |
- | shutdown | + | |
</ | </ | ||
- | Alternatively, if you have enough | + | Alternativamente, si tiene suficiente |
- | tmpfs by adding the following to ''/ | + | |
<file - / | <file - / | ||
Línea 42: | Línea 27: | ||
</ | </ | ||
- | You can restrict the size of ''/ | + | Puede restringir el tamaño de '' |
- | to avoid running out of memory. | + | una cierta cantidad de tiempo y no elimina los sockets |
- | + | ||
- | There is also a more prudent way of cleaning up your tmp directory; | + | |
- | this method consists of allowing the temporary files to exist for | + | |
- | more than the amount of time between startup and shutdown. The | + | |
- | following script selects files which haven' | + | |
- | certain amount of time and doesn' | + | |
- | decide to run this script using cron on a regular | + | |
<code bash cleanstale.sh> | <code bash cleanstale.sh> | ||
Línea 64: | Línea 42: | ||
< | < | ||
- | Again, please test scripts | + | De nuevo, pruebe los scripts |
- | your system. As always: your mileage may vary. | + | |
</ | </ | ||
==== sbopkg ==== | ==== sbopkg ==== |