<?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%2Frm</id>
	<title>Comandos de la terminal/rm - 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%2Frm"/>
	<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/rm&amp;action=history"/>
	<updated>2026-04-21T22:06:58Z</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/rm&amp;diff=5354&amp;oldid=prev</id>
		<title>Rrc en 19:26 12 abr 2014</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/rm&amp;diff=5354&amp;oldid=prev"/>
		<updated>2014-04-12T19:26:54Z</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;
* [[:#rm | rm]]&lt;br /&gt;
&lt;br /&gt;
== rm ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm --help&lt;br /&gt;
Usage: rm [OPTION]... FILE...&lt;br /&gt;
Remove (unlink) the FILE(s).&lt;br /&gt;
&lt;br /&gt;
  -f, --force           ignore nonexistent files and arguments, never prompt&lt;br /&gt;
  -i                    prompt before every removal&lt;br /&gt;
  -I                    prompt once before removing more than three files, or&lt;br /&gt;
                          when removing recursively.  Less intrusive than -i,&lt;br /&gt;
                          while still giving protection against most mistakes&lt;br /&gt;
      --interactive[=WHEN]  prompt according to WHEN: never, once (-I), or&lt;br /&gt;
                          always (-i).  Without WHEN, prompt always&lt;br /&gt;
      --one-file-system  when removing a hierarchy recursively, skip any&lt;br /&gt;
                          directory that is on a file system different from&lt;br /&gt;
                          that of the corresponding command line argument&lt;br /&gt;
      --no-preserve-root  do not treat &amp;#039;/&amp;#039; specially&lt;br /&gt;
      --preserve-root   do not remove &amp;#039;/&amp;#039; (default)&lt;br /&gt;
  -r, -R, --recursive   remove directories and their contents recursively&lt;br /&gt;
  -d, --dir             remove empty directories&lt;br /&gt;
  -v, --verbose         explain what is being done&lt;br /&gt;
      --help     display this help and exit&lt;br /&gt;
      --version  output version information and exit&lt;br /&gt;
&lt;br /&gt;
By default, rm does not remove directories.  Use the --recursive (-r or -R)&lt;br /&gt;
option to remove each listed directory, too, along with all of its contents.&lt;br /&gt;
&lt;br /&gt;
To remove a file whose name starts with a &amp;#039;-&amp;#039;, for example &amp;#039;-foo&amp;#039;,&lt;br /&gt;
use one of these commands:&lt;br /&gt;
  rm -- -foo&lt;br /&gt;
&lt;br /&gt;
  rm ./-foo&lt;br /&gt;
&lt;br /&gt;
Note that if you use rm to remove a file, it might be possible to recover&lt;br /&gt;
some of its contents, given sufficient expertise and/or time.  For greater&lt;br /&gt;
assurance that the contents are truly unrecoverable, consider using shred.&lt;br /&gt;
&lt;br /&gt;
Report rm 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;rm invocation&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm --version&lt;br /&gt;
rm (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 Paul Rubin, David MacKenzie, Richard M. Stallman,&lt;br /&gt;
and Jim Meyering.&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ alias rm&lt;br /&gt;
alias rm=&amp;#039;rm -i&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm typescript &lt;br /&gt;
rm: remove regular file ‘typescript’? n&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ ls -al typescript &lt;br /&gt;
-rwxr-xr-x 1 rrc rrc 1359 Jan 18 15:41 typescript*&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm -f typescript &lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ ls -al typescript &lt;br /&gt;
ls: cannot access typescript: No such file or directory&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ ls -al UniqSortEjemplo&lt;br /&gt;
-rw-r--r--   1 rrc  rrc          48 Apr  1 16:56 UniqSortEjemplo&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ unalias rm&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ alias rm&lt;br /&gt;
&lt;br /&gt;
bash: alias: rm: not found&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm UniqSortEjemplo &lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ ls -al UniqSortEjemplo &lt;br /&gt;
ls: cannot access UniqSortEjemplo: No such file or directory&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm C1/C2/C3/C4/C5/C6/&lt;br /&gt;
rm: cannot remove ‘C1/C2/C3/C4/C5/C6/’: Is a directory&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm -d C1/C2/C3/C4/C5/C6/&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ ls -al C1/C2/C3/C4/C5/C6/&lt;br /&gt;
ls: cannot access C1/C2/C3/C4/C5/C6/: No such file or directory&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ touch C1/C2/C3/C4/C5/Archivo&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm C1/C2/C3/C4/C5&lt;br /&gt;
rm: cannot remove ‘C1/C2/C3/C4/C5’: Is a directory&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm -d C1/C2/C3/C4/C5&lt;br /&gt;
rm: cannot remove ‘C1/C2/C3/C4/C5’: Directory not empty&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm -r C1/C2/C3/C4/C5&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ ls -al C1/C2/C3/C4/C5&lt;br /&gt;
ls: cannot access C1/C2/C3/C4/C5: No such file or directory&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm -df C1&lt;br /&gt;
rm: cannot remove ‘C1’: Directory not empty&lt;br /&gt;
&lt;br /&gt;
rrc@pridd ComandosDeLaTerminal]$ rm -r C1&lt;br /&gt;
rm: descend into directory ‘C1’? y&lt;br /&gt;
rm: remove directory ‘C1/C2’? y&lt;br /&gt;
rm: remove directory ‘C1’? y&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ ls -alR C11&lt;br /&gt;
C11:&lt;br /&gt;
total 12&lt;br /&gt;
drwxrwxrwx  3 rrc rrc 4096 Mar 22 16:06 ./&lt;br /&gt;
drwxrwxr-x 11 rrc rrc 4096 Apr 12 14:21 ../&lt;br /&gt;
drwxrwxrwx  3 rrc rrc 4096 Mar 22 16:06 C12/&lt;br /&gt;
&lt;br /&gt;
C11/C12:&lt;br /&gt;
total 12&lt;br /&gt;
drwxrwxrwx 3 rrc rrc 4096 Mar 22 16:06 ./&lt;br /&gt;
drwxrwxrwx 3 rrc rrc 4096 Mar 22 16:06 ../&lt;br /&gt;
drwxr-x--- 2 rrc rrc 4096 Mar 22 16:06 C13/&lt;br /&gt;
&lt;br /&gt;
C11/C12/C13:&lt;br /&gt;
total 8&lt;br /&gt;
drwxr-x--- 2 rrc rrc 4096 Mar 22 16:06 ./&lt;br /&gt;
drwxrwxrwx 3 rrc rrc 4096 Mar 22 16:06 ../&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm -rf C11&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ ls -alR C11&lt;br /&gt;
ls: cannot access C11: No such file or directory&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd ComandosDeLaTerminal]$ rm -rvf richard&lt;br /&gt;
removed ‘richard/evolution.es.html’&lt;br /&gt;
removed ‘richard/RichardSleeve.es.html’&lt;br /&gt;
removed ‘richard/robots.txt’&lt;br /&gt;
removed ‘richard/index.html’&lt;br /&gt;
removed ‘richard/images/valid-xhtml11.png’&lt;br /&gt;
removed ‘richard/images/valid-xhtml10.png’&lt;br /&gt;
removed directory: ‘richard/images’&lt;br /&gt;
removed ‘richard/evolution.html’&lt;br /&gt;
removed ‘richard/index.es.html’&lt;br /&gt;
removed ‘richard/RichardSleeve.html’&lt;br /&gt;
removed directory: ‘richard’&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>