[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

Próxima revisión
Revisión previa
es:howtos:general_admin:free_your_space [2019/02/06 11:29 (UTC)] – creado slackwarespanoles:howtos:general_admin:free_your_space [2019/02/08 11:44 (UTC)] (actual) slackwarespanol
Línea 2: Línea 2:
 <!-- Reviewed 2012-12-28 hazel --> <!-- Reviewed 2012-12-28 hazel -->
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
-====== Free your space ====== +====== Libera tu espacio ====== 
-Sometimes you can find yourself in a situation where you are suddenly faced +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 sistemaPuede haber algunas cosas que puedes hacer para liberar algo
-with a message telling you that there’s no more free space on your system. +==== /tmp ==== 
-There might be a few things you can do to free some of it. +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 ''.
- +
-==== /tmp directory ==== +
-The first reason can be a /tmp directory which doesn’t get cleaned +
-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 33: Línea 17:
  
 <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 44: Línea 26:
 </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 66: Línea 41:
  
 <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 ====
Línea 78: Línea 52:
 </code> </code>
  
-If you do not need the sources of packages installed via ''sbopkg'', +Si no necesita las fuentes de los paquetes instalados a través de '' sbopkg '', es posible que también desee limpiar todo el caché '' sbopkg ''Puedes hacerlo en el menú de utilidades de '' sbopkg ''.
-you may also want to clean the whole ''sbopkg'' cacheYou can do it +
-in ''sbopkg''’s utility menu.+
  
-==== Finding files/directories taking up most space ==== +==== Encontrar archivos directorios que ocupan la mayor parte del espacio ==== 
-It’s also good practice to find directories/files that take up most +También es una buena práctica encontrar directorios archivos que ocupen la mayor parte del espacioEl siguiente comando mostrará los 20 archivos directorios más grandes en un lugar específico (en este ejemplo, el directorio de inicio de Fred):
-spaceThe following command will display 20 largest files/directories +
-in a specified place (in this example Fred's home directory):+
 <code bash find_largest.sh> <code bash find_largest.sh>
 du -a /home/fred/ | sort -n -r | head -n 20 du -a /home/fred/ | sort -n -r | head -n 20
 </code> </code>
  
-You can go through the list and decide whether you want to delete any of +Puede revisar la lista y decidir si desea eliminar alguno de ellos. 
-them.+ 
 +Un enfoque más rápido podría ser usar [[http://slackbuilds.org/repository/13.37/system/ncdu/|ncdu]], '' du '' 's ncurses frontend. No solo muestra los directorios en su orden elegido (ascendente / descendente, por tamaño / nombre), sino que también le permite 
 +Explorar de forma interactiva (y ** tener cuidado: eliminar **).
  
-A quicker approach might be to use 
-[[http://slackbuilds.org/repository/13.37/system/ncdu/|ncdu]], ''du'''s 
-ncurses frontend. Not only does it display directories in your chosen 
-order (ascending/descending, by size/name), but also lets you 
-interactively browse (and **be careful: delete**) them. 
 <note> <note>
-To make sure you don’t delete something by accidentyou can run the program +Para asegurarse de no eliminar algo por accidentepuede ejecutar el programa en modo de solo lectura llamándolo con la opcion // - r //.
-in the read-only mode calling it with the //-r// flag.+
 </note> </note>
  
-Apart from ordering the files/directories by size or namethere are also +Además de ordenar los archivos directorios por tamaño o nombretambién hay una serie de opciones de visualización interesantes como mostrar el porcentaje o el gráficomostrar ocultar archivos y directorios ocultos o excluidos (puede excluir ciertos directorios o archivos si lo desea).
-a number of interesting display options like showing percentage or graph, +
-showing/hiding hidden or excluded files and directories (you can exclude +
-certain directories or files if you want.)+
  
-Although it is not part of the stock Slackware, it can be easily installed +Aunque no es parte del stock de Slackware, se puede instalar fácilmente desde [[http://slackbuilds.org/repository/13.37/system /ncdu/|SlackBuilds.org]] (no tiene ninguna dependencia adicional).
-from [[http://slackbuilds.org/repository/13.37/system/ncdu/|SlackBuilds.org]] +
-(it does not have any additional dependencies.)+
  
-==== Remove unnecessary programs ==== +==== Eliminar programas innecesarios ==== 
-Another way of freeing some space is by uninstalling the apps that you no +Otra forma de liberar espacio es mediante la desinstalación de las aplicaciones que ya no necesitaSi no sabe lo que está haciendoNO se recomienda desinstalar nada de la instalación predeterminada de Slackware. Podrías romper algunas partes del sistemaUn enfoque más seguro sería desinstalar algunas aplicaciones de tercerosHace mucho tiempo, es posible que haya instalado algunas aplicaciones de [[http: //www.slackbuilds.org | SlackBuilds]] que ya no usaPuedes eliminar programas de terceros usando el siguiente comando:
-longer needIf you don’t know what you are doingit is NOT recommended to +
-uninstall anything from the Slackware’s default installationYou might +
-break some parts of the system A safer approach would be to uninstall +
-some 3rd party applicationsLong time ago you may have installed some +
-applications from [[http://www.slackbuilds.org|SlackBuilds]] that you no +
-longer useYou can remove 3rd party programs using the following command:+
  
 <code> <code>
 root@darkstar# slackpkg clean-system root@darkstar# slackpkg clean-system
 </code> </code>
-This will list all 3rd party packages and let you select the ones you want +Esto mostrará una lista de todos los paquetes de terceros y le permitirá seleccionar los que desea eliminarPara que una aplicación se incluya en la lista '' slackpkg '', debe haber sido construida e instalada a la manera de Slackware, es decirpor [[http://docs.slackware.com/howtos:lets_build_a_slackbuild|using a SlackBuild]]. De lo contrariono formará parte del sistema de gestión de paquetes Slackware.
-to removeIn order for an application to be included in ''slackpkg'' list +
-it must have been built and installed the Slackware wayieby +
-[[http://docs.slackware.com/howtos:lets_build_a_slackbuild|using a +
-SlackBuild]]. Otherwiseit will not be part of the Slackware package +
-management system. +
- +
-If there's no SlackBuild for a program you want to install, try to +
-[[http://www.slackwiki.com/Writing_A_SlackBuild_Script|create one]] or use +
-the excellent [[http://www.src2pkg.net/|src2pkg]] tool.+
  
-===== Disk Cleanup Utilities ===== +Si no hay SlackBuild para un programa que desea instalar, intente [[http://www.slackwiki.com/Writing_A_SlackBuild_Script|create one]] o use la excelente [[http://www.src2pkg.net/|src2pkg ]] herramienta.
-Here are a list of disk cleanup utilities you might find useful to remove +
-unnecessary or temporary files from your system.+
  
-  * [[http://www.kde.org/applications/utilities/sweeper/|Sweeper]] - A KDE disk cleanup application. +===== Utilidades de limpieza de disco ===== 
-  * [[http://bleachbit.sourceforge.net/|BleachBit]] - BleachBit quickly frees disk space and tirelessly guards your privacy. Free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and discard junk you didn't know was there. A Slackbuild is available at [[http://slackbuilds.org/|SlackBuilds.org]].+Aquí hay una lista de las utilidades de limpieza de disco que pueden ser útiles para eliminar archivos innecesarios o temporales de su sistema.
  
 +   * [[http://www.kde.org/applications/utilities/sweeper/|Sweeper]] - Una aplicación de limpieza de disco KDE.
 +   * [[http://bleachbit.sourceforge.net/|BleachBit]] - BleachBit libera rápidamente el espacio en el disco y protege incansablemente tu privacidad. Libere el caché, elimine las cookies, borre el historial de Internet, destruya los archivos temporales, elimine los registros y descarte la basura que no sabía que estaba allí. Un Slackbuild está disponible en [[http://slackbuilds.org/|SlackBuilds.org]].
 ====== Sources ====== ====== Sources ======
-  * Originally written by [[wiki:user:sycamorex|sycamorex]] +  * Originalmente escrito por [[wiki:user:sycamorex|sycamorex]] 
-  * Based on sycamorex'blog article [[http://www.slackword.net/?p=78|here ]] +  * Basado en el artículo del blog de sycamorex.[[http://www.slackword.net/?p=78|here ]] 
-  * Additional inputs by [[wiki:user:vharishankar|Harishankar]] (Disk Cleanup Utilities section+  * Entradas adicionales por [[wiki:user:vharishankar|Harishankar]] (Sección Utilidades de limpieza del disco
-  * Contrbutions by [[wiki:user:cpt | cpt]] (cleanup script), original script has been copied from a mail-list, cpt does explicitly not claim to be the original author of this script.+  * Contribuciones por [[wiki:user:cpt | cpt]] (script de limpieza), el script original se ha copiado de una lista de correo, cpt no afirma explícitamente ser el autor original de este script. 
 +  * Traducido por:  [[wiki:user: slackwarespanol | Victor]] 2019/02/08 11:41 (UTC)
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
 <!-- * Original source: [[http://some.website.org/some/page.html]] --> <!-- * Original source: [[http://some.website.org/some/page.html]] -->
 es:howtos:general_admin:free_your_space ()