[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.

Welcome to the Slackware Documentation Project

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

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)] slackwarespanoles: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 / tmp que no se limpie automáticamenteCreo mis propios archivos temporales en mi directorio de inicio para poder eliminar de forma segura el contenido de / tmp cada vez que apago el sistemaSin embargono tienes que hacerlo manualmenteEl siguiente comando se debe colocar en '' /etc/rc.d/rc.local_shutdown ''.
-automaticallyI 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 manuallythough. +
- +
-The following command should be placed in ''/etc/rc.d/rc.local_shutdown''. +
 <file bash /etc/rc.d/rc.local_shutdown.append> <file bash /etc/rc.d/rc.local_shutdown.append>
 /usr/bin/find /tmp -mindepth 1 -maxdepth 1 -exec /bin/rm -rf {} +; /usr/bin/find /tmp -mindepth 1 -maxdepth 1 -exec /bin/rm -rf {} +;
 </file> </file>
  
-This will delete ALL the files in the /tmp directory every time the system +Esto eliminará TODOS los archivos en el directorio / tmp cada vez que el sistema se apague¡así que tenga cuidado con lo que coloca allíEl archivo '' rc.local_shutdown '' también puede ser útil de otras manerasSi necesita realizar otras tareas en el cierrepuede ponerlas aquíComo este archivo no existe en la instalación predeterminada de Slackware, primero debe crearlo y hacerlo ejecutable:
-shuts downso be careful what you put there! +
- +
-The ''rc.local_shutdown'' file can also be useful in other waysIf you +
-need to perform any other tasks on shutdownyou can put them hereAs +
-this file doesn’t exist on the default installation of Slackware, you +
-need to create it first and make it executable: +
 <code> <code>
 root@darkstar# touch /etc/rc.d/rc.local_shutdown root@darkstar# touch /etc/rc.d/rc.local_shutdown
Línea 31: Línea 18:
  
 <note> <note>
-Remember to test your commands well before you include them in the +Recuerde probar sus comandos bien antes de incluirlos en el archivo shutdown.
-shutdown file.+
 </note> </note>
  
-Alternativelyif you have enough RAM, you may mount the ''/tmp'' in +Alternativamentesi tiene suficiente RAM, puede montar '' /tmp '' en tmpfs agregando lo siguiente a '' /etc/fstab ''.
-tmpfs by adding the following to ''/etc/fstab''.+
  
 <file - /etc/fstab.append> <file - /etc/fstab.append>
Línea 42: Línea 27:
 </file> </file>
  
-You can restrict the size of ''/tmp'' (max. 4GB in the example above) +Puede restringir el tamaño de '' / tmp '' (máx. 4GB en el ejemplo anteriorpara evitar quedarse sin memoriaTambién hay una forma más prudente de limpiar su directorio tmp; este método consiste en permitir que los archivos temporales existan por más tiempo que entre el inicio y el apagadoLa siguiente secuencia de comandos selecciona archivos que no se han tocado para una 
-to avoid running out of memory. +una cierta cantidad de tiempo y no elimina los sockets para X. Uno podría decidir ejecutar esta secuencia de comandos con cron de forma regular.
- +
-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 shutdownThe +
-following script selects files which haven't been touched for a +
-certain amount of time and doesn't remove sockets for X. One could +
-decide to run this script using cron on a regular basis.+
  
 <code bash cleanstale.sh> <code bash cleanstale.sh>
Línea 64: Línea 42:
  
 <note> <note>
-Againplease test scripts very carefully before deploying them on +De nuevopruebe los scripts con mucho cuidado antes de implementarlos en su sistema
-your system. As always: your mileage may vary.+
 </note> </note>
 ==== sbopkg ==== ==== sbopkg ====
 es:howtos:general_admin:free_your_space ()