<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fwhich</id>
	<title>Comandos de la terminal/which - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fwhich"/>
	<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/which&amp;action=history"/>
	<updated>2026-04-14T20:46:07Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/which&amp;diff=5238&amp;oldid=prev</id>
		<title>Rrc en 19:43 18 feb 2014</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/which&amp;diff=5238&amp;oldid=prev"/>
		<updated>2014-02-18T19:43:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#which | which]]&lt;br /&gt;
&lt;br /&gt;
== which ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[rrc@Llawyr ~]$ which --help&lt;br /&gt;
Usage: which [options] [--] COMMAND [...]&lt;br /&gt;
Write the full path of COMMAND(s) to standard output.&lt;br /&gt;
&lt;br /&gt;
  --version, -[vV] Print version and exit successfully.&lt;br /&gt;
  --help,          Print this help and exit successfully.&lt;br /&gt;
  --skip-dot       Skip directories in PATH that start with a dot.&lt;br /&gt;
  --skip-tilde     Skip directories in PATH that start with a tilde.&lt;br /&gt;
  --show-dot       Don&amp;#039;t expand a dot to current directory in output.&lt;br /&gt;
  --show-tilde     Output a tilde for HOME directory for non-root.&lt;br /&gt;
  --tty-only       Stop processing options on the right if not on tty.&lt;br /&gt;
  --all, -a        Print all matches in PATH, not just the first&lt;br /&gt;
  --read-alias, -i Read list of aliases from stdin.&lt;br /&gt;
  --skip-alias     Ignore option --read-alias; don&amp;#039;t read stdin.&lt;br /&gt;
  --read-functions Read shell functions from stdin.&lt;br /&gt;
  --skip-functions Ignore option --read-functions; don&amp;#039;t read stdin.&lt;br /&gt;
&lt;br /&gt;
Recommended use is to write the output of (alias; declare -f) to standard&lt;br /&gt;
input, so that which can show aliases and shell functions. See which(1) for&lt;br /&gt;
examples.&lt;br /&gt;
&lt;br /&gt;
If the options --read-alias and/or --read-functions are specified then the&lt;br /&gt;
output can be a full alias or function definition, optionally followed by&lt;br /&gt;
the full path of each command used inside of those.&lt;br /&gt;
&lt;br /&gt;
Report bugs to &amp;lt;which-bugs@gnu.org&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ which --version&lt;br /&gt;
GNU which v2.20, Copyright (C) 1999 - 2008 Carlo Wood.&lt;br /&gt;
GNU which comes with ABSOLUTELY NO WARRANTY;&lt;br /&gt;
This program is free software; your freedom to use, change&lt;br /&gt;
and distribute this program is protected by the GPL.&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ which HolaMundo&lt;br /&gt;
which: no HolaMundo in (/usr/local/bin:/usr/bin:/usr/games:/usr/lib64/qt4/bin:/home/rrc/bin)&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ which printf&lt;br /&gt;
/usr/bin/printf&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ which fsck.ext4&lt;br /&gt;
which: no fsck.ext4 in (/usr/local/bin:/usr/bin:/usr/games:/usr/lib64/qt4/bin:/home/rrc/bin)&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ su -&lt;br /&gt;
Password: &lt;br /&gt;
[root@Llawyr ~]#  which fsck.ext4&lt;br /&gt;
/usr/sbin/fsck.ext4&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ~]# which HolaMundo&lt;br /&gt;
which: no HolaMundo in (/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin)&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr bin]# cp -a /bin/yes .&lt;br /&gt;
[root@Llawyr bin]# ls -al yes&lt;br /&gt;
-rwxr-xr-x 1 root root 28992 Dec 20 19:21 yes*&lt;br /&gt;
[root@Llawyr bin]# which yes&lt;br /&gt;
/usr/local/bin/yes&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr bin]# which -a yes&lt;br /&gt;
/usr/local/bin/yes&lt;br /&gt;
/usr/bin/yes&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr bin]# rm yes&lt;br /&gt;
rm: remove regular file ‘yes’? y&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Comandos de la terminal]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>