[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 previaPróxima revisión | Revisión previaPró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:41 (UTC)] – [Disk Cleanup Utilities] 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 ==== | ||
Línea 76: | Línea 53: | ||
</ | </ | ||
- | If you do not need the sources of packages installed via '' | + | Si no necesita las fuentes de los paquetes instalados a través de '' |
- | you may also want to clean the whole '' | + | |
- | in '' | + | |
- | ==== Finding files/directories taking up most space ==== | + | ==== Encontrar archivos |
- | It’s also good practice to find directories/files that take up most | + | También es una buena práctica encontrar directorios |
- | space. The following command will display | + | |
- | in a specified place (in this example | + | |
<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 | ||
</ | </ | ||
- | 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:// | ||
+ | Explorar de forma interactiva (y ** tener cuidado: eliminar **). | ||
- | A quicker approach might be to use | ||
- | [[http:// | ||
- | ncurses frontend. Not only does it display directories in your chosen | ||
- | order (ascending/ | ||
- | interactively browse (and **be careful: delete**) them. | ||
< | < | ||
- | To make sure you don’t delete something by accident, you can run the program | + | Para asegurarse de no eliminar algo por accidente, puede ejecutar el programa en modo de solo lectura llamándolo con la opcion |
- | in the read-only mode calling it with the // | + | |
</ | </ | ||
- | Apart from ordering the files/directories by size or name, there are also | + | Además de ordenar los archivos |
- | a number of interesting display options like showing percentage or graph, | + | |
- | showing/hiding hidden or excluded files and directories | + | |
- | certain directories or files if you want.) | + | |
- | Although it is not part of the stock Slackware, | + | Aunque no es parte del stock de Slackware, |
- | from [[http:// | + | |
- | (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 necesita. Si no sabe lo que está haciendo, NO se recomienda desinstalar nada de la instalación predeterminada de Slackware. |
- | longer need. If you don’t know what you are doing, it is NOT recommended to | + | |
- | uninstall anything from the Slackware’s default installation. You might | + | |
- | break some parts of the system | + | |
- | some 3rd party applications. Long time ago you may have installed some | + | |
- | applications from [[http:// | + | |
- | longer use. You can remove 3rd party programs using the following command: | + | |
< | < | ||
root@darkstar# | root@darkstar# | ||
</ | </ | ||
- | 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 eliminar. Para que una aplicación se incluya en la lista '' |
- | to remove. In order for an application to be included in '' | + | |
- | it must have been built and installed the Slackware | + | |
- | [[http:// | + | |
- | SlackBuild]]. | + | |
- | management system. | + | |
- | + | ||
- | If there' | + | |
- | [[http:// | + | |
- | the excellent [[http:// | + | |
- | ===== Disk Cleanup Utilities ===== | + | Si no hay SlackBuild para un programa que desea instalar, intente [[http:// |
- | Here are a list of disk cleanup utilities you might find useful to remove | + | |
- | unnecessary or temporary files from your system. | + | |
- | * [[http:// | + | ===== Utilidades de limpieza de disco ===== |
- | * [[http:// | + | 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:// | ||
+ | * [[http:// | ||
====== Sources ====== | ====== Sources ====== | ||
* Originally written by [[wiki: | * Originally written by [[wiki: |