<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://mainkivi.info:443/wiki/index.php?action=history&amp;feed=atom&amp;title=Find</id>
	<title>Find - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://mainkivi.info:443/wiki/index.php?action=history&amp;feed=atom&amp;title=Find"/>
	<link rel="alternate" type="text/html" href="https://mainkivi.info:443/wiki/index.php?title=Find&amp;action=history"/>
	<updated>2026-04-29T23:58:04Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://mainkivi.info:443/wiki/index.php?title=Find&amp;diff=449&amp;oldid=prev</id>
		<title>Admin: /* Ejemplos prácticos */</title>
		<link rel="alternate" type="text/html" href="https://mainkivi.info:443/wiki/index.php?title=Find&amp;diff=449&amp;oldid=prev"/>
		<updated>2024-10-27T09:27:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Ejemplos prácticos&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revisión del 09:27 27 oct 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Línea 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Ejemplos prácticos ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Ejemplos prácticos ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Buscar todos los archivos PDF en un directorio:&amp;lt;blockquote&amp;gt;find /&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ruta&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;al&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;directorio &lt;/del&gt;-name &quot;*.pdf&quot;&amp;lt;/blockquote&amp;gt;Buscar ficheros por nombre en el directorio documentos del usuario:&amp;lt;blockquote&amp;gt;find /home/user/documents -name &quot;example.txt&quot; &amp;lt;/blockquote&amp;gt;Buscar por extensión:&amp;lt;blockquote&amp;gt;find /var/log -name &quot;*.log&quot;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Buscar todos los archivos PDF en un directorio:&amp;lt;blockquote&amp;gt;find /&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;home&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;user&lt;/ins&gt;/ -name &quot;*.pdf&quot;&amp;lt;/blockquote&amp;gt;Buscar ficheros por nombre en el directorio documentos del usuario:&amp;lt;blockquote&amp;gt;find /home/user/documents -name &quot;example.txt&quot; &amp;lt;/blockquote&amp;gt;Buscar por extensión:&amp;lt;blockquote&amp;gt;find /var/log -name &quot;*.log&quot;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/blockquote&amp;gt;Buscar todos los archivos modificados en las últimas 24 horas o un dia: &amp;lt;blockquote&amp;gt;find /&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ruta&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;al/directorio &lt;/del&gt;-mtime -1&amp;lt;/blockquote&amp;gt;Buscado de ficheros modificados en los últimos 60 minutos:&amp;lt;blockquote&amp;gt;find /srv/exports -mmin -60&amp;lt;/blockquote&amp;gt;Buscado de todos los ficheros menos los que tienen extensión &quot;*.txt&quot;&amp;lt;blockquote&amp;gt;find /&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;hom&lt;/del&gt;/user -not -name &quot;*.txt&quot;&amp;lt;/blockquote&amp;gt;Buscar todos los ficheros entre un rango de peso, por ejemplo, entre 50 y 100M:&amp;lt;blockquote&amp;gt;find /home/user/Download -size +50M -size 100M&amp;lt;/blockquote&amp;gt;Búsqueda de todos los ficheros ocultos:&amp;lt;blockquote&amp;gt;find /home/user -name &quot;.*&quot;&amp;lt;/blockquote&amp;gt;Buscar archivos mayores a 10MB y eliminarlos:&amp;lt;blockquote&amp;gt;find /ruta/al/directorio -size +10M -delete&amp;lt;/blockquote&amp;gt;Buscar ficheros que pertenecen a un usuario:&amp;lt;blockquote&amp;gt;find /home -user username &amp;lt;/blockquote&amp;gt;Buscar ficheros con permisos 0644:&amp;lt;blockquote&amp;gt;fins /etc -perm 0644&amp;lt;/blockquote&amp;gt;Buscar archivos ocultos y ejecutar un comando sobre ellos:&amp;lt;blockquote&amp;gt;find /ruta/al/directorio -name &quot;.*&quot; -exec ls -l {} \;&amp;lt;/blockquote&amp;gt;Buscar ficheros o directorios y ejecutar, pro ejemplo borrado de los ficheros sin ningún contenido:&amp;lt;blockquote&amp;gt;find /home/user/Download -type f -empty -exec rm () \;&amp;lt;/blockquote&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/blockquote&amp;gt;Buscar todos los archivos modificados en las últimas 24 horas o un dia: &amp;lt;blockquote&amp;gt;find /&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;home&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;user &lt;/ins&gt;-mtime -1&amp;lt;/blockquote&amp;gt;Buscado de ficheros modificados en los últimos 60 minutos:&amp;lt;blockquote&amp;gt;find /srv/exports -mmin -60&amp;lt;/blockquote&amp;gt;Buscado de todos los ficheros menos los que tienen extensión &quot;*.txt&quot;&amp;lt;blockquote&amp;gt;find /&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;home&lt;/ins&gt;/user -not -name &quot;*.txt&quot;&amp;lt;/blockquote&amp;gt;Buscar todos los ficheros entre un rango de peso, por ejemplo, entre 50 y 100M:&amp;lt;blockquote&amp;gt;find /home/user/Download -size +50M -size 100M&amp;lt;/blockquote&amp;gt;Búsqueda de todos los ficheros ocultos:&amp;lt;blockquote&amp;gt;find /home/user -name &quot;.*&quot;&amp;lt;/blockquote&amp;gt;Buscar archivos mayores a 10MB y eliminarlos:&amp;lt;blockquote&amp;gt;find /ruta/al/directorio -size +10M -delete&amp;lt;/blockquote&amp;gt;Buscar ficheros que pertenecen a un usuario:&amp;lt;blockquote&amp;gt;find /home -user username &amp;lt;/blockquote&amp;gt;Buscar ficheros con permisos 0644:&amp;lt;blockquote&amp;gt;fins /etc -perm 0644&amp;lt;/blockquote&amp;gt;Buscar archivos ocultos y ejecutar un comando sobre ellos:&amp;lt;blockquote&amp;gt;find /ruta/al/directorio -name &quot;.*&quot; -exec ls -l {} \;&amp;lt;/blockquote&amp;gt;Buscar ficheros o directorios y ejecutar, pro ejemplo borrado de los ficheros sin ningún contenido:&amp;lt;blockquote&amp;gt;find /home/user/Download -type f -empty -exec rm () \;&amp;lt;/blockquote&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki-my_wiki:diff:1.41:old-448:rev-449:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://mainkivi.info:443/wiki/index.php?title=Find&amp;diff=448&amp;oldid=prev</id>
		<title>Admin: Página creada con « == Introducción ==  * &#039;&#039;&#039;Definición:&#039;&#039;&#039; Explica de forma sencilla qué es &lt;code&gt;find&lt;/code&gt; y para qué se utiliza. * &#039;&#039;&#039;Sintaxis básica:&#039;&#039;&#039; Presenta la estructura general del comando con ejemplos simples.  == Opciones más comunes ==  * &#039;&#039;&#039;Buscar por nombre:&#039;&#039;&#039; ** Nombres exactos ** Patrones con comodines (&lt;code&gt;*&lt;/code&gt;, &lt;code&gt;?&lt;/code&gt;) ** Expresiones regulares * &#039;&#039;&#039;Buscar por tipo de archivo:&#039;&#039;&#039; ** Ficheros regulares ** Directorios ** Enlaces simbólicos ** Otr…»</title>
		<link rel="alternate" type="text/html" href="https://mainkivi.info:443/wiki/index.php?title=Find&amp;diff=448&amp;oldid=prev"/>
		<updated>2024-10-27T09:25:34Z</updated>

		<summary type="html">&lt;p&gt;Página creada con « == Introducción ==  * &amp;#039;&amp;#039;&amp;#039;Definición:&amp;#039;&amp;#039;&amp;#039; Explica de forma sencilla qué es &amp;lt;code&amp;gt;find&amp;lt;/code&amp;gt; y para qué se utiliza. * &amp;#039;&amp;#039;&amp;#039;Sintaxis básica:&amp;#039;&amp;#039;&amp;#039; Presenta la estructura general del comando con ejemplos simples.  == Opciones más comunes ==  * &amp;#039;&amp;#039;&amp;#039;Buscar por nombre:&amp;#039;&amp;#039;&amp;#039; ** Nombres exactos ** Patrones con comodines (&amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;?&amp;lt;/code&amp;gt;) ** Expresiones regulares * &amp;#039;&amp;#039;&amp;#039;Buscar por tipo de archivo:&amp;#039;&amp;#039;&amp;#039; ** Ficheros regulares ** Directorios ** Enlaces simbólicos ** Otr…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Introducción ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Definición:&amp;#039;&amp;#039;&amp;#039; Explica de forma sencilla qué es &amp;lt;code&amp;gt;find&amp;lt;/code&amp;gt; y para qué se utiliza.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Sintaxis básica:&amp;#039;&amp;#039;&amp;#039; Presenta la estructura general del comando con ejemplos simples.&lt;br /&gt;
&lt;br /&gt;
== Opciones más comunes ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Buscar por nombre:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Nombres exactos&lt;br /&gt;
** Patrones con comodines (&amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;?&amp;lt;/code&amp;gt;)&lt;br /&gt;
** Expresiones regulares&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Buscar por tipo de archivo:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Ficheros regulares&lt;br /&gt;
** Directorios&lt;br /&gt;
** Enlaces simbólicos&lt;br /&gt;
** Otros tipos&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Buscar por tamaño:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Mayor que&lt;br /&gt;
** Menor que&lt;br /&gt;
** Igual a&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Buscar por fecha:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Modificación&lt;br /&gt;
** Acceso&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Buscar por permisos:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Lectura, escritura, ejecución&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Buscar por propietario y grupo:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Combinar opciones:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Operadores lógicos (&amp;lt;code&amp;gt;-and&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;-or&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;-not&amp;lt;/code&amp;gt;)&lt;br /&gt;
** Paréntesis para agrupar expresiones&lt;br /&gt;
&lt;br /&gt;
==== Acciones sobre los archivos encontrados ====&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Imprimir nombres:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Ejecutar comandos:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Eliminar archivos:&amp;#039;&amp;#039;&amp;#039; (¡Con mucha precaución!)&lt;br /&gt;
&lt;br /&gt;
== Ejemplos prácticos ==&lt;br /&gt;
Buscar todos los archivos PDF en un directorio:&amp;lt;blockquote&amp;gt;find /ruta/al/directorio -name &amp;quot;*.pdf&amp;quot;&amp;lt;/blockquote&amp;gt;Buscar ficheros por nombre en el directorio documentos del usuario:&amp;lt;blockquote&amp;gt;find /home/user/documents -name &amp;quot;example.txt&amp;quot; &amp;lt;/blockquote&amp;gt;Buscar por extensión:&amp;lt;blockquote&amp;gt;find /var/log -name &amp;quot;*.log&amp;quot; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;Buscar todos los archivos modificados en las últimas 24 horas o un dia: &amp;lt;blockquote&amp;gt;find /ruta/al/directorio -mtime -1&amp;lt;/blockquote&amp;gt;Buscado de ficheros modificados en los últimos 60 minutos:&amp;lt;blockquote&amp;gt;find /srv/exports -mmin -60&amp;lt;/blockquote&amp;gt;Buscado de todos los ficheros menos los que tienen extensión &amp;quot;*.txt&amp;quot;&amp;lt;blockquote&amp;gt;find /hom/user -not -name &amp;quot;*.txt&amp;quot;&amp;lt;/blockquote&amp;gt;Buscar todos los ficheros entre un rango de peso, por ejemplo, entre 50 y 100M:&amp;lt;blockquote&amp;gt;find /home/user/Download -size +50M -size 100M&amp;lt;/blockquote&amp;gt;Búsqueda de todos los ficheros ocultos:&amp;lt;blockquote&amp;gt;find /home/user -name &amp;quot;.*&amp;quot;&amp;lt;/blockquote&amp;gt;Buscar archivos mayores a 10MB y eliminarlos:&amp;lt;blockquote&amp;gt;find /ruta/al/directorio -size +10M -delete&amp;lt;/blockquote&amp;gt;Buscar ficheros que pertenecen a un usuario:&amp;lt;blockquote&amp;gt;find /home -user username &amp;lt;/blockquote&amp;gt;Buscar ficheros con permisos 0644:&amp;lt;blockquote&amp;gt;fins /etc -perm 0644&amp;lt;/blockquote&amp;gt;Buscar archivos ocultos y ejecutar un comando sobre ellos:&amp;lt;blockquote&amp;gt;find /ruta/al/directorio -name &amp;quot;.*&amp;quot; -exec ls -l {} \;&amp;lt;/blockquote&amp;gt;Buscar ficheros o directorios y ejecutar, pro ejemplo borrado de los ficheros sin ningún contenido:&amp;lt;blockquote&amp;gt;find /home/user/Download -type f -empty -exec rm () \;&amp;lt;/blockquote&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>