<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fchown</id>
	<title>Comandos de la terminal/chown - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fchown"/>
	<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/chown&amp;action=history"/>
	<updated>2026-04-04T18:59:42Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/chown&amp;diff=5262&amp;oldid=prev</id>
		<title>Rrc en 17:53 5 mar 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/chown&amp;diff=5262&amp;oldid=prev"/>
		<updated>2014-03-05T17:53:24Z</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;
* [[:#chown | chown]]&lt;br /&gt;
&lt;br /&gt;
== chown ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[rrc@Llawyr ~]$ chown --help&lt;br /&gt;
Usage: chown [OPTION]... [OWNER][:[GROUP]] FILE...&lt;br /&gt;
  or:  chown [OPTION]... --reference=RFILE FILE...&lt;br /&gt;
Change the owner and/or group of each FILE to OWNER and/or GROUP.&lt;br /&gt;
With --reference, change the owner and group of each FILE to those of RFILE.&lt;br /&gt;
&lt;br /&gt;
  -c, --changes          like verbose but report only when a change is made&lt;br /&gt;
  -f, --silent, --quiet  suppress most error messages&lt;br /&gt;
  -v, --verbose          output a diagnostic for every file processed&lt;br /&gt;
      --dereference      affect the referent of each symbolic link (this is&lt;br /&gt;
                         the default), rather than the symbolic link itself&lt;br /&gt;
  -h, --no-dereference   affect symbolic links instead of any referenced file&lt;br /&gt;
                         (useful only on systems that can change the&lt;br /&gt;
                         ownership of a symlink)&lt;br /&gt;
      --from=CURRENT_OWNER:CURRENT_GROUP&lt;br /&gt;
                         change the owner and/or group of each file only if&lt;br /&gt;
                         its current owner and/or group match those specified&lt;br /&gt;
                         here.  Either may be omitted, in which case a match&lt;br /&gt;
                         is not required for the omitted attribute&lt;br /&gt;
      --no-preserve-root  do not treat &amp;#039;/&amp;#039; specially (the default)&lt;br /&gt;
      --preserve-root    fail to operate recursively on &amp;#039;/&amp;#039;&lt;br /&gt;
      --reference=RFILE  use RFILE&amp;#039;s owner and group rather than&lt;br /&gt;
                         specifying OWNER:GROUP values&lt;br /&gt;
  -R, --recursive        operate on files and directories recursively&lt;br /&gt;
&lt;br /&gt;
The following options modify how a hierarchy is traversed when the -R&lt;br /&gt;
option is also specified.  If more than one is specified, only the final&lt;br /&gt;
one takes effect.&lt;br /&gt;
&lt;br /&gt;
  -H                     if a command line argument is a symbolic link&lt;br /&gt;
                         to a directory, traverse it&lt;br /&gt;
  -L                     traverse every symbolic link to a directory&lt;br /&gt;
                         encountered&lt;br /&gt;
  -P                     do not traverse any symbolic links (default)&lt;br /&gt;
&lt;br /&gt;
      --help     display this help and exit&lt;br /&gt;
      --version  output version information and exit&lt;br /&gt;
&lt;br /&gt;
Owner is unchanged if missing.  Group is unchanged if missing, but changed&lt;br /&gt;
to login group if implied by a &amp;#039;:&amp;#039; following a symbolic OWNER.&lt;br /&gt;
OWNER and GROUP may be numeric as well as symbolic.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  chown root /u        Change the owner of /u to &amp;quot;root&amp;quot;.&lt;br /&gt;
  chown root:staff /u  Likewise, but also change its group to &amp;quot;staff&amp;quot;.&lt;br /&gt;
  chown -hR root /u    Change the owner of /u and subfiles to &amp;quot;root&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Report chown bugs to bug-coreutils@gnu.org&lt;br /&gt;
GNU coreutils home page: &amp;lt;http://www.gnu.org/software/coreutils/&amp;gt;&lt;br /&gt;
General help using GNU software: &amp;lt;http://www.gnu.org/gethelp/&amp;gt;&lt;br /&gt;
For complete documentation, run: info coreutils &amp;#039;chown invocation&amp;#039;&lt;br /&gt;
[rrc@Llawyr ~]$ &lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ chown --version&lt;br /&gt;
chown (GNU coreutils) 8.21&lt;br /&gt;
Copyright (C) 2013 Free Software Foundation, Inc.&lt;br /&gt;
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;.&lt;br /&gt;
This is free software: you are free to change and redistribute it.&lt;br /&gt;
There is NO WARRANTY, to the extent permitted by law.&lt;br /&gt;
&lt;br /&gt;
Written by David MacKenzie and Jim Meyering.&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# chown bin typescript &lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# ls -al typescript &lt;br /&gt;
-rw------- 1 bin rrc 1359 Nov 16 13:16 typescript&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# chown rrc.bin typescript &lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# ls -al typescript &lt;br /&gt;
-rw------- 1 rrc bin 1359 Nov 16 13:16 typescript&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# chown root:root typescript &lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# ls -al typescript &lt;br /&gt;
-rw------- 1 root root 1359 Nov 16 13:16 typescript&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# chown -v rrc.rrc typescript &lt;br /&gt;
changed ownership of ‘typescript’ from root:root to rrc:rrc&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# ls -alR Carpeta1/&lt;br /&gt;
Carpeta1/:&lt;br /&gt;
total 12&lt;br /&gt;
drwxr-xr-x  3 rrc rrc 4096 Mar  4 12:44 ./&lt;br /&gt;
drwx------ 12 rrc rrc 4096 Mar  4 12:44 ../&lt;br /&gt;
drwxr-xr-x  3 rrc rrc 4096 Mar  4 12:44 Carpeta2/&lt;br /&gt;
&lt;br /&gt;
Carpeta1/Carpeta2:&lt;br /&gt;
total 12&lt;br /&gt;
drwxr-xr-x 3 rrc rrc 4096 Mar  4 12:44 ./&lt;br /&gt;
drwxr-xr-x 3 rrc rrc 4096 Mar  4 12:44 ../&lt;br /&gt;
drwxr-xr-x 2 rrc rrc 4096 Mar  4 12:44 Carpeta3/&lt;br /&gt;
&lt;br /&gt;
Carpeta1/Carpeta2/Carpeta3:&lt;br /&gt;
total 8&lt;br /&gt;
drwxr-xr-x 2 rrc rrc 4096 Mar  4 12:44 ./&lt;br /&gt;
drwxr-xr-x 3 rrc rrc 4096 Mar  4 12:44 ../&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# chown -R rrc.bin Carpeta1&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# ls -alR Carpeta1/&lt;br /&gt;
Carpeta1/:&lt;br /&gt;
total 12&lt;br /&gt;
drwxr-xr-x  3 rrc bin 4096 Mar  4 12:44 ./&lt;br /&gt;
drwx------ 12 rrc rrc 4096 Mar  4 12:44 ../&lt;br /&gt;
drwxr-xr-x  3 rrc bin 4096 Mar  4 12:44 Carpeta2/&lt;br /&gt;
&lt;br /&gt;
Carpeta1/Carpeta2:&lt;br /&gt;
total 12&lt;br /&gt;
drwxr-xr-x 3 rrc bin 4096 Mar  4 12:44 ./&lt;br /&gt;
drwxr-xr-x 3 rrc bin 4096 Mar  4 12:44 ../&lt;br /&gt;
drwxr-xr-x 2 rrc bin 4096 Mar  4 12:44 Carpeta3/&lt;br /&gt;
&lt;br /&gt;
Carpeta1/Carpeta2/Carpeta3:&lt;br /&gt;
total 8&lt;br /&gt;
drwxr-xr-x 2 rrc bin 4096 Mar  4 12:44 ./&lt;br /&gt;
drwxr-xr-x 3 rrc bin 4096 Mar  4 12:44 ../&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# ln -s Carpeta1 ChownPrueba&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# ls -al ChownPrueba/&lt;br /&gt;
total 12&lt;br /&gt;
drwxr-xr-x  3 rrc  bin  4096 Mar  5 11:45 ./&lt;br /&gt;
drwx------ 12 rrc  rrc  4096 Mar  5 11:46 ../&lt;br /&gt;
drwxr-xr-x  3 rrc  bin  4096 Mar  4 12:44 Carpeta2/&lt;br /&gt;
lrwxrwxrwx  1 root root   11 Mar  5 11:45 ChownPrueba -&amp;gt; ChownPrueba&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# chown -RP root.bin ChownPrueba&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# ls -al ChownPrueba/&lt;br /&gt;
total 12&lt;br /&gt;
drwxr-xr-x  3 rrc  bin  4096 Mar  5 11:45 ./&lt;br /&gt;
drwx------ 12 rrc  rrc  4096 Mar  5 11:46 ../&lt;br /&gt;
drwxr-xr-x  3 rrc  bin  4096 Mar  4 12:44 Carpeta2/&lt;br /&gt;
lrwxrwxrwx  1 root root   11 Mar  5 11:45 ChownPrueba -&amp;gt; ChownPrueba&lt;br /&gt;
&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# chown -RP root.bin Carpeta1&lt;br /&gt;
[root@Llawyr ComandosDeLaTerminal]# ls -al ChownPrueba/&lt;br /&gt;
total 12&lt;br /&gt;
drwxr-xr-x  3 root bin 4096 Mar  5 11:45 ./&lt;br /&gt;
drwx------ 12 rrc  rrc 4096 Mar  5 11:46 ../&lt;br /&gt;
drwxr-xr-x  3 root bin 4096 Mar  4 12:44 Carpeta2/&lt;br /&gt;
lrwxrwxrwx  1 root bin   11 Mar  5 11:45 ChownPrueba -&amp;gt; ChownPrueba&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>