<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title># rm-rf.es &#187; línea de comandos</title>
	<atom:link href="http://rm-rf.es/sobre/linea-de-comandos/feed/" rel="self" type="application/rss+xml" />
	<link>http://rm-rf.es</link>
	<description>Administración de sistemas, Unix, Linux, FreeBSD, Windows, hosting, dominios, servidores...</description>
	<lastBuildDate>Sat, 28 Jan 2012 19:36:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Comprobar resolución inversa desde línea de comandos (Linux y Windows)</title>
		<link>http://rm-rf.es/comprobar-resolucion-inversa-linea-de-comandos-linux-windows/</link>
		<comments>http://rm-rf.es/comprobar-resolucion-inversa-linea-de-comandos-linux-windows/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 12:48:34 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[dns]]></category>
		<category><![CDATA[línea de comandos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://rm-rf.es/?p=1332</guid>
		<description><![CDATA[Comprobar la resolución de DNS inversa significa verificar el hostname al que resuelve una IP determinada (como sabréis normalmente se busca lo contrario). Resolución inversa (reverse DNS) en Unix/Linux Para verificar la resolución inversa en Linux utilizaremos el comando &#8220;host&#8221;: # host ip Ejemplos: Google: # host 66.102.9.105 105.9.102.66.in-addr.arpa domain name pointer lm-in-f105.1e100.net. Telefónica: # [...]]]></description>
			<content:encoded><![CDATA[<p>Comprobar la resolución de DNS inversa significa verificar el hostname al que resuelve una IP determinada (como sabréis normalmente se busca lo contrario).</p>
<h2> Resolución inversa (reverse DNS) en Unix/Linux</h2>
<p>Para verificar la resolución inversa en Linux utilizaremos el comando &#8220;host&#8221;:</p>
<pre># host ip</pre>
<p>Ejemplos:</p>
<p><em>Google:</em></p>
<pre># host 66.102.9.105
105.9.102.66.in-addr.arpa domain name pointer lm-in-f105.1e100.net.</pre>
<p><em>Telefónica:</em></p>
<pre># host 80.58.0.33
33.0.58.80.in-addr.arpa domain name pointer 33.Red-80-58-0.staticIP.rima-tde.net.</pre>
<h2> Resolución inversa (reverse DNS) en Windows</h2>
<p>Para windows utilizaremos el comando nslookup, que realmente también podríamos utilizar en Unix. El proceso es el siguiente:</p>
<p><em>Google:</em></p>
<pre># nslookup 66.102.9.105
Server:         208.67.222.222
Address:        208.67.222.222#53

Non-authoritative answer:
105.9.102.66.in-addr.arpa       name = lm-in-f105.1e100.net.
</pre>
<p><em>Telefónica:</em></p>
<pre>
 nslookup 80.58.0.33
Server:         208.67.222.222
Address:        208.67.222.222#53

Non-authoritative answer:
33.0.58.80.in-addr.arpa name = 33.Red-80-58-0.staticIP.rima-tde.net.
</pre>
<p>En <a target="_blank" href="http://www.cyberciti.biz/faq/how-to-test-or-check-reverse-dns/">NixCraft</a> encontraréis unas cuantas formas más de hacerlo.</p>
<h4  class="related_post_title">También te puede interesar:</h4><ul class="related_post"><li><a href="http://rm-rf.es/como-vaciar-ficheros-en-linux/" title="Cómo vaciar ficheros en Linux">Cómo vaciar ficheros en Linux</a></li><li><a href="http://rm-rf.es/ebook-gratuito-the-linux-command-line/" title="eBook gratuito: The Linux Command Line">eBook gratuito: The Linux Command Line</a></li><li><a href="http://rm-rf.es/crea-imagenes-de-arranque-windows-o-linux-en-tu-usb/" title="Crea imagenes de arranque Windows o Linux en tu USB">Crea imagenes de arranque Windows o Linux en tu USB</a></li><li><a href="http://rm-rf.es/apagar-reiniciar-maquina-windows-remotamente-desde-linux/" title="Apagar o reiniciar máquina Windows remotamente desde Linux">Apagar o reiniciar máquina Windows remotamente desde Linux</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rm-rf.es/comprobar-resolucion-inversa-linea-de-comandos-linux-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cómo vaciar ficheros en Linux</title>
		<link>http://rm-rf.es/como-vaciar-ficheros-en-linux/</link>
		<comments>http://rm-rf.es/como-vaciar-ficheros-en-linux/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 17:19:10 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[Comandos]]></category>
		<category><![CDATA[ficheros]]></category>
		<category><![CDATA[línea de comandos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://rm-rf.es/?p=1317</guid>
		<description><![CDATA[Existen varias formas de vaciar el contenido de ficheros en sistemas Unix desde la línea de comandos, algunas de ellas son las siguientes: # echo "" &#62; fichero # &#62; fichero # :&#62; fichero # cat /dev/null &#62; fichero # true &#62; fichero También te puede interesar:chattr y lsattr: visualizar y modificar atributos en sistemas [...]]]></description>
			<content:encoded><![CDATA[<p>Existen varias formas de <strong>vaciar el contenido de ficheros en sistemas Unix desde la línea de comandos</strong>, algunas de ellas son las siguientes:</p>
<pre># echo "" &gt; fichero</pre>
<pre># &gt; fichero</pre>
<pre># :&gt; fichero</pre>
<pre># cat /dev/null &gt; fichero</pre>
<pre># true &gt; fichero</pre>
<h4  class="related_post_title">También te puede interesar:</h4><ul class="related_post"><li><a href="http://rm-rf.es/chattr-y-lsattr-visualizar-y-modificar-atributos-en-sistemas-de-ficheros-linux/" title="chattr y lsattr: visualizar y modificar atributos en sistemas de ficheros Linux">chattr y lsattr: visualizar y modificar atributos en sistemas de ficheros Linux</a></li><li><a href="http://rm-rf.es/comprobar-resolucion-inversa-linea-de-comandos-linux-windows/" title="Comprobar resolución inversa desde línea de comandos (Linux y Windows)">Comprobar resolución inversa desde línea de comandos (Linux y Windows)</a></li><li><a href="http://rm-rf.es/ebook-gratuito-the-linux-command-line/" title="eBook gratuito: The Linux Command Line">eBook gratuito: The Linux Command Line</a></li><li><a href="http://rm-rf.es/unix-toolbox-base-de-datos-de-comandos-y-tareas-unix-linux-bsd/" title="Unix ToolBox: Base de datos de comandos y tareas Unix/Linux/BSD">Unix ToolBox: Base de datos de comandos y tareas Unix/Linux/BSD</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rm-rf.es/como-vaciar-ficheros-en-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eBook gratuito: The Linux Command Line</title>
		<link>http://rm-rf.es/ebook-gratuito-the-linux-command-line/</link>
		<comments>http://rm-rf.es/ebook-gratuito-the-linux-command-line/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 20:28:33 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Manuales]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[línea de comandos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://rm-rf.es/?p=1306</guid>
		<description><![CDATA[The Linux® Command Line es un libro publicado bajo licencia Creative Commons creado por William E. Shotts, Jr especialmente para aquellos que se están iniciando en el mundo de la línea de comandos Linux. En sus 522 páginas se cubre el mismo material disponible en LinuxCommand.org pero con mucho más detalle. Además de lo básico [...]]]></description>
			<content:encoded><![CDATA[<p><img title="The Linux Command Line" src="http://rm-rf.es/wp-content/uploads/2010/04/320_7594184-230x300.jpg" alt="The Linux Command Line" width="138" height="181" align="left" />The Linux® Command Line es un libro publicado bajo licencia Creative Commons creado por William E. Shotts, Jr especialmente para aquellos que se están iniciando en el mundo de la <strong>línea de comandos Linux</strong>.</p>
<p>En sus 522 páginas se cubre el mismo material disponible en <a href="http://linuxCommand.org " target="_blank">LinuxCommand.org</a> pero con mucho más detalle. Además de lo básico de la línea de comandos se enseña el shell scripting y el uso de los programas más comunes de la línea de comandos Linux.</p>
<p>Podéis descargar el libro a través de este <a href="http://sourceforge.net/projects/linuxcommand/files/TLCL/09.12/TLCL-09.12.pdf/download" target="_blank">enlace</a>.</p>
<h4  class="related_post_title">También te puede interesar:</h4><ul class="related_post"><li><a href="http://rm-rf.es/comprobar-resolucion-inversa-linea-de-comandos-linux-windows/" title="Comprobar resolución inversa desde línea de comandos (Linux y Windows)">Comprobar resolución inversa desde línea de comandos (Linux y Windows)</a></li><li><a href="http://rm-rf.es/como-vaciar-ficheros-en-linux/" title="Cómo vaciar ficheros en Linux">Cómo vaciar ficheros en Linux</a></li><li><a href="http://rm-rf.es/comando-chage-tiempo-de-vida-de-claves-y-usuarios-en-gnulinux/" title="Comando chage: tiempo de vida de claves y usuarios en GNU/Linux">Comando chage: tiempo de vida de claves y usuarios en GNU/Linux</a></li><li><a href="http://rm-rf.es/gestion-de-lvm-en-linux-logical-volume-manager/" title="Gestión de LVM en Linux (Logical Volume Manager)">Gestión de LVM en Linux (Logical Volume Manager)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rm-rf.es/ebook-gratuito-the-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Información sobre apache desde línea de comandos</title>
		<link>http://rm-rf.es/informacion-apache-linea-de-comandos/</link>
		<comments>http://rm-rf.es/informacion-apache-linea-de-comandos/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 19:42:11 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[línea de comandos]]></category>
		<category><![CDATA[servidor web]]></category>

		<guid isPermaLink="false">http://rm-rf.es/?p=1263</guid>
		<description><![CDATA[Siguiendo el hilo de la Información sobre PHP desde línea de comandos hoy vamos a ver las posibilidades que nos ofrece el servidor web Apache en la línea de comandos: En primera instancia revisamos si el binario httpd se encuentra en nuestro path o si debemos llamar a su ruta completa: # whereis httpd httpd: [...]]]></description>
			<content:encoded><![CDATA[<p>Siguiendo el hilo de la <a title="Información sobre PHP desde línea de comandos" href="http://rm-rf.es/informacion-php-linea-comandos/" target="_blank">Información sobre PHP desde línea de comandos </a> hoy vamos a ver las posibilidades que nos ofrece el servidor web Apache en la línea de comandos:</p>
<p>En primera instancia revisamos si el binario httpd se encuentra en nuestro path o si debemos llamar a su ruta completa:</p>
<pre># whereis httpd
httpd: /usr/sbin/httpd /etc/httpd</pre>
<p>En este caso podemos llamarlo directamente con &#8220;httpd&#8221;, vamos a ver algunas opciones que nos permiten sacar información sobre el servidor web:</p>
<h3>Mostrar la versión de Apache:</h3>
<pre># httpd -v
# httpd -v
Server version: Apache/X.X.XX
Server built:   Sep 21 2009 09:57:47</pre>
</h3>
<h3>Mostrar información y ajustes de la compilación:</h3>
<p>Como véis también muestra la información que sacábamos con httpd -v:</p>
<pre># httpd -V
Server version: Apache/X.X.XX
Server built:   Sep 21 2009 09:57:47
Server's Module Magic Number: ...
Server loaded: ...
Compiled using:  ...
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
...
...</pre>
<h3>Mostrar módulos compilados:</h3>
<pre># httpd -l
Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_logio.c
  mod_env.c
  mod_expires.c
...
...</pre>
</h3>
<h3>Ejecutar una revisión de sintaxis para los ficheros de configuración:</h3>
<pre># httpd -t
Syntax OK</pre>
<h3>Listar las directivas de configuración disponibles:</h3>
<pre># httpd -L
Directory (core.c)
	Container for directives affecting resources located in the specified directories
	Allowed in *.conf only outside...
	Container for directives affecting resources accessed through the specified URL paths
	Allowed in *.conf only outside ...
VirtualHost (core.c)
	Container to map directives to a particular virtual host, takes one or more host addresses
	Allowed in *.conf only outside ..
Files (core.c)
...
...</pre>
<h3>Especificar un fichero de configuración alternativo:</h3>
<pre># httpd -f fichero</pre>
<h3>Especificar un ServerRoot alternativo:</h3>
<pre># httpd -d directorio</pre>
<h3>Listar las opciones en línea de comandos:</h3>
<pre># httpd -h
Usage: /usr/local/apache/bin/httpd [-D name] [-d directory] [-f file]
                                   [-C "directive"] [-c "directive"]
                                   [-k start|restart|graceful|stop]
                                   [-v] [-V] [-h] [-l] [-L] [-G] [-t] [-S]
Options:
  -D name           : define a name for use in  directives
  -d directory      : specify an alternate initial ServerRoot
  -f file           : specify an alternate ServerConfigFile
  -C "directive"    : process directive before reading config files
  -c "directive"    : process directive after reading config files
  -e level          : show startup errors of level (see LogLevel)
  -E file           : log startup errors to file
  -v                : show version number
  -V                : show compile settings
  -h                : list available command line options (this page)
  -l                : list compiled in modules
  -L                : list available configuration directives
  -G                : list available configuration directives after loading conf file
  -t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
  -S                : a synonym for -t -D DUMP_VHOSTS
  -t                : run syntax check for config files</pre>
</pre>
<h4  class="related_post_title">También te puede interesar:</h4><ul class="related_post"><li><a href="http://rm-rf.es/apache-diferencia-entre-reiniciar-con-restart-y-graceful/" title="Apache: diferencia entre reiniciar con &#8216;restart&#8217; y &#8216;graceful&#8217;">Apache: diferencia entre reiniciar con &#8216;restart&#8217; y &#8216;graceful&#8217;</a></li><li><a href="http://rm-rf.es/configurar-apache-como-reverse-proxy-proxy-inverso/" title="Configurar Apache como Reverse Proxy (Proxy Inverso)">Configurar Apache como Reverse Proxy (Proxy Inverso)</a></li><li><a href="http://rm-rf.es/apache-activar-httpd-fullstatus/" title="Apache: Activar httpd fullstatus">Apache: Activar httpd fullstatus</a></li><li><a href="http://rm-rf.es/apxs-no-se-encuentra-disponible-para-apache/" title="apxs no se encuentra disponible para Apache">apxs no se encuentra disponible para Apache</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rm-rf.es/informacion-apache-linea-de-comandos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cómo eliminar servicios de Windows desde línea de comandos (CMD)</title>
		<link>http://rm-rf.es/como-eliminar-servicios-windows-linea-comandos-cmd/</link>
		<comments>http://rm-rf.es/como-eliminar-servicios-windows-linea-comandos-cmd/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 17:12:01 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[línea de comandos]]></category>
		<category><![CDATA[servicios]]></category>

		<guid isPermaLink="false">http://rm-rf.es/?p=1256</guid>
		<description><![CDATA[Lo primero que debemos saber es como encontrar todos los servicios configurados en el sistema, para ello: Windows en español: Inicio:&#62; Ejecutar:&#62; services.msc Windows en inglés: Start:&#62; Run:&#62; services.msc Aparecerá una ventana como la de la imagen, en la cual podréis ver el listado de servicios del sistema, algunos iniciados, otros parados/deshabilitados, etc. Pinchando en [...]]]></description>
			<content:encoded><![CDATA[<p>Lo primero que debemos saber es como encontrar todos los servicios configurados en el sistema, para ello:</p>
<p>Windows en español:</p>
<pre>Inicio:&gt; Ejecutar:&gt; services.msc</pre>
<p>Windows en inglés:</p>
<pre>Start:&gt; Run:&gt; services.msc</pre>
<p><center><img src="http://img294.imageshack.us/img294/397/servicesy.jpg" alt="Servicios Windows" title="Servicios Windows" /></center><br />
Aparecerá una ventana como la de la imagen, en la cual podréis ver el listado de servicios del sistema, algunos iniciados, otros parados/deshabilitados, etc. Pinchando en cada uno de ellos con el botón derecho y después en &#8220;propiedades&#8221;.</p>
<p>Bien, aquí podéis revisar que servicios creéis necesarios y cuales no, pudiendo parar un proceso o deshabilitarlo para que no arranque en el inicio del sistema operativo.</p>
<p>Por otro lado, si lo que queremos es <strong>eliminar el servicio</strong> debemos hacerlo desde la<strong> línea de comandos de Windows</strong>:</p>
<p>Windows en español:</p>
<pre>Inicio:&gt; Ejecutar:&gt; cmd</pre>
<p>Windows en inglés:</p>
<pre>Start:&gt; Run:&gt; cmd</pre>
<p>Una vez en la ventana de línea de comandos, para eliminar un servicio:</p>
<pre>sc delete nombre_del_servicio</pre>
<h4  class="related_post_title">También te puede interesar:</h4><ul class="related_post"><li><a href="http://rm-rf.es/introduccion-a-smf-service-management-facility-en-solaris/" title="Introducción a SMF (Service Management Facility) en Solaris">Introducción a SMF (Service Management Facility) en Solaris</a></li><li><a href="http://rm-rf.es/como-iniciar-y-parar-servicios-de-windows-desde-cmd-linea-de-comandos/" title="Cómo iniciar y parar servicios de Windows desde CMD (línea de comandos)">Cómo iniciar y parar servicios de Windows desde CMD (línea de comandos)</a></li><li><a href="http://rm-rf.es/gestion-y-monitorizacion-de-servicios-con-monit/" title="Gestión y monitorización de servicios con Monit">Gestión y monitorización de servicios con Monit</a></li><li><a href="http://rm-rf.es/comprobar-resolucion-inversa-linea-de-comandos-linux-windows/" title="Comprobar resolución inversa desde línea de comandos (Linux y Windows)">Comprobar resolución inversa desde línea de comandos (Linux y Windows)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rm-rf.es/como-eliminar-servicios-windows-linea-comandos-cmd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Información sobre PHP desde línea de comandos</title>
		<link>http://rm-rf.es/informacion-php-linea-comandos/</link>
		<comments>http://rm-rf.es/informacion-php-linea-comandos/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 11:48:30 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[clase]]></category>
		<category><![CDATA[configuracion]]></category>
		<category><![CDATA[funciones]]></category>
		<category><![CDATA[informacion php]]></category>
		<category><![CDATA[línea de comandos]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://rm-rf.es/?p=1247</guid>
		<description><![CDATA[A través de la línea de comandos podemos averiguar información relativa a PHP muy interesante, como por ejemplo: Versión de PHP instalada: $ php -v PHP 5.X.X (cli) (built: Jun 18 2009 18:16:19) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies with Zend Extension Manager vX.X.X, Copyright (c) 2003-2007, [...]]]></description>
			<content:encoded><![CDATA[<p>A través de la <strong>línea de comandos</strong> podemos averiguar <strong>información relativa a PHP</strong> muy interesante, como por ejemplo:</p>
<h3>Versión de PHP instalada:</h3>
<pre>$ php -v

PHP 5.X.X (cli) (built: Jun 18 2009 18:16:19)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Zend Extension Manager vX.X.X, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer vX.X.X, Copyright (c) 1998-2007, by Zend Technologies
</pre>
<h3>Módulos de PHP instalados/compilados:</h3>
<pre>$ php -m
[PHP Modules]
bcmath
calendar
ctype
curl
date
dom
filter
ftp
gd
...
...
...
[Zend Modules]
Zend Extension Manager
Zend Optimizer
</pre>
<h3>Información general PHP:</h3>
<p>La salida de este comando es la misma que <em>&lt;? phpinfo() ?&gt;</em> en un script php.</p>
<pre>$ php -i
phpinfo()
PHP Version =&gt; 5.X.X

System =&gt; Linux  #1 SMP Thu May 7 10:39:21 EDT 2009 iX86
Build Date =&gt; Jun 18 2009 18:14:47
Configure Command =&gt;  './configure'  '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable
-mbstring' '--enable-sockets' '--enable-zip' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--wit
Server API =&gt; Command Line Interface
Virtual Directory Support =&gt; disabled
....
....
....
This program makes use of the Zend Scripting Language Engine:
Zend Engine vX.X.X, Copyright (c) 1998-2009 Zend Technologies
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer vX.X.X, Copyright (c) 1998-2007, by Zend Technologies
....
....
....
</pre>
<h3>Mostrar ficheros de configuración cargados y sus rutas:</h3>
<pre>$ php --ini

Configuration File (php.ini) Path: /xxx/xxx/xx
Loaded Configuration File:         /xxx/xxx/xxx/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)
</pre>
<h3>Mostrar configuración de un módulo/extensión instalado:</h3>
<p>La sintaxis es <strong>php &#8211;ri módulo</strong></p>
<pre>$ php --ri openssl
openssl

OpenSSL support =&gt; enabled
OpenSSL Version =&gt; OpenSSL X.X.Xe-fips-xxx 01 Jul 2008
</pre>
<h3>Mostrar información de un módulo/extensión instalado:</h3>
<p>La sintaxis es <strong>php &#8211;re módulo</strong></p>
<pre>$ php --re openssl
Extension [
 extension #35 openssl version  ] {

  - Constants [36] {
    Constant [ string OPENSSL_VERSION_TEXT ] { OpenSSL X.X.Xe-fips-xxx 01 Jul 2008 }
    Constant [ integer OPENSSL_VERSION_NUMBER ] { 9469999 }
    Constant [ integer X509_PURPOSE_SSL_CLIENT ] { 1 }
    Constant [ integer X509_PURPOSE_SSL_SERVER ] { 2 }
    Constant [ integer X509_PURPOSE_NS_SSL_SERVER ] { 3 }
    Constant [ integer X509_PURPOSE_SMIME_SIGN ] { 4 }
    Constant [ integer X509_PURPOSE_SMIME_ENCRYPT ] { 5 }
    Constant [ integer X509_PURPOSE_CRL_SIGN ] { 6 }
    Constant [ integer X509_PURPOSE_ANY ] { 7 }
    Constant [ integer OPENSSL_ALGO_SHA1 ] { 1 }
    Constant [ integer OPENSSL_ALGO_MD5 ] { 2 }
    Constant [ integer OPENSSL_ALGO_MD4 ] { 3 }
    Constant [ integer OPENSSL_ALGO_MD2 ] { 4 }
    Constant [ integer OPENSSL_ALGO_DSS1 ] { 5 }
...
...
...
</pre>
<p>Respecto a estos dos últimos puntos, también podemos buscar <strong>información acerca de una clase (php &#8211;rf clase)</strong> y de una <strong>función (php &#8211;rc función)</strong>.</p>
<h4  class="related_post_title">También te puede interesar:</h4><ul class="related_post"><li><a href="http://rm-rf.es/ocultar-la-version-de-php/" title="Ocultar la versión de PHP">Ocultar la versión de PHP</a></li><li><a href="http://rm-rf.es/comprobar-resolucion-inversa-linea-de-comandos-linux-windows/" title="Comprobar resolución inversa desde línea de comandos (Linux y Windows)">Comprobar resolución inversa desde línea de comandos (Linux y Windows)</a></li><li><a href="http://rm-rf.es/como-vaciar-ficheros-en-linux/" title="Cómo vaciar ficheros en Linux">Cómo vaciar ficheros en Linux</a></li><li><a href="http://rm-rf.es/ebook-gratuito-the-linux-command-line/" title="eBook gratuito: The Linux Command Line">eBook gratuito: The Linux Command Line</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rm-rf.es/informacion-php-linea-comandos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Truco Shell: Enviar correos desde línea de comandos con ficheros adjuntos</title>
		<link>http://rm-rf.es/truco-shell-enviar-correos-desde-linea-de-comandos-con-ficheros-adjuntos/</link>
		<comments>http://rm-rf.es/truco-shell-enviar-correos-desde-linea-de-comandos-con-ficheros-adjuntos/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 18:57:31 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Comandos]]></category>
		<category><![CDATA[correos]]></category>
		<category><![CDATA[ficheros adjuntos]]></category>
		<category><![CDATA[línea de comandos]]></category>
		<category><![CDATA[truco Shell]]></category>

		<guid isPermaLink="false">http://rm-rf.es/?p=212</guid>
		<description><![CDATA[Son varias las veces que me he visto en la necesidad de enviar un email desde línea de comandos en Unix, por si lo tenéis que hacer alguna vez ahí va la solución: cat fichero.tar.gz &#124; uuencode fichero.tar.gz &#124; mail -s "Asunto del email" correo@dominio.com Lo importante es saber utilizar uuencode, pues lo que hace [...]]]></description>
			<content:encoded><![CDATA[<p>Son varias las veces que me he visto en la necesidad de enviar un email desde línea de comandos en Unix, por si lo tenéis que hacer alguna vez ahí va la solución:</p>
<pre>cat fichero.tar.gz | uuencode fichero.tar.gz | mail -s "Asunto del email" correo@dominio.com</pre>
<p>Lo importante es saber utilizar <strong>uuencode</strong>, pues lo que hace es transformar código binario en texto, para así poder enviarlo por correo.<br />
Bueno, esta es una de las formas de hacerlo, espero que os sirva.</p>
<h4  class="related_post_title">También te puede interesar:</h4><ul class="related_post"><li><a href="http://rm-rf.es/comprobar-resolucion-inversa-linea-de-comandos-linux-windows/" title="Comprobar resolución inversa desde línea de comandos (Linux y Windows)">Comprobar resolución inversa desde línea de comandos (Linux y Windows)</a></li><li><a href="http://rm-rf.es/como-vaciar-ficheros-en-linux/" title="Cómo vaciar ficheros en Linux">Cómo vaciar ficheros en Linux</a></li><li><a href="http://rm-rf.es/ebook-gratuito-the-linux-command-line/" title="eBook gratuito: The Linux Command Line">eBook gratuito: The Linux Command Line</a></li><li><a href="http://rm-rf.es/informacion-apache-linea-de-comandos/" title="Información sobre apache desde línea de comandos ">Información sobre apache desde línea de comandos </a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rm-rf.es/truco-shell-enviar-correos-desde-linea-de-comandos-con-ficheros-adjuntos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

