<?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%2Fhistory</id>
	<title>Comandos de la terminal/history - 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%2Fhistory"/>
	<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/history&amp;action=history"/>
	<updated>2026-04-04T15:13:21Z</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/history&amp;diff=5220&amp;oldid=prev</id>
		<title>Rrc en 21:53 14 feb 2014</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/history&amp;diff=5220&amp;oldid=prev"/>
		<updated>2014-02-14T21:53:34Z</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;
* [[:#history | history]]&lt;br /&gt;
&lt;br /&gt;
== history ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
history [n]&lt;br /&gt;
       history -c&lt;br /&gt;
       history -d offset&lt;br /&gt;
       history -anrw [filename]&lt;br /&gt;
       history -p arg [arg ...]&lt;br /&gt;
       history -s arg [arg ...]&lt;br /&gt;
              With no options, display the command history list with line num‐&lt;br /&gt;
              bers.  Lines listed with a * have been modified.  An argument of&lt;br /&gt;
              n lists only the last n lines.  If the shell variable  HISTTIME‐&lt;br /&gt;
              FORMAT  is  set  and not null, it is used as a format string for&lt;br /&gt;
              strftime(3) to display the time stamp associated with each  dis‐&lt;br /&gt;
              played  history  entry.  No intervening blank is printed between&lt;br /&gt;
              the formatted time stamp and the history line.  If  filename  is&lt;br /&gt;
              supplied,  it  is  used as the name of the history file; if not,&lt;br /&gt;
              the value of HISTFILE is used.  Options, if supplied,  have  the&lt;br /&gt;
              following meanings:&lt;br /&gt;
              -c     Clear the history list by deleting all the entries.&lt;br /&gt;
              -d offset&lt;br /&gt;
                     Delete the history entry at position offset.&lt;br /&gt;
              -a     Append  the  ``new&amp;#039;&amp;#039; history lines (history lines entered&lt;br /&gt;
                     since the beginning of the current bash session)  to  the&lt;br /&gt;
                     history file.&lt;br /&gt;
              -n     Read  the history lines not already read from the history&lt;br /&gt;
                     file into the current  history  list.   These  are  lines&lt;br /&gt;
                     appended  to  the history file since the beginning of the&lt;br /&gt;
                     current bash session.&lt;br /&gt;
              -r     Read the contents of the history file and use them as the&lt;br /&gt;
                     current history.&lt;br /&gt;
              -w     Write  the current history to the history file, overwrit‐&lt;br /&gt;
                     ing the history file&amp;#039;s contents.&lt;br /&gt;
              -p     Perform history substitution on the  following  args  and&lt;br /&gt;
                     display  the  result  on  the  standard output.  Does not&lt;br /&gt;
                     store the results in the history list.  Each arg must  be&lt;br /&gt;
                     quoted to disable normal history expansion.&lt;br /&gt;
              -s     Store  the  args  in  the history list as a single entry.&lt;br /&gt;
                     The last command in the history list  is  removed  before&lt;br /&gt;
                     the args are added.&lt;br /&gt;
&lt;br /&gt;
              If  the  HISTTIMEFORMAT variable is set, the time stamp informa‐&lt;br /&gt;
              tion associated with each history entry is written to  the  his‐&lt;br /&gt;
              tory  file, marked with the history comment character.  When the&lt;br /&gt;
              history file is read, lines beginning with the  history  comment&lt;br /&gt;
              character  followed  immediately  by  a digit are interpreted as&lt;br /&gt;
              timestamps for the previous history line.  The return value is 0&lt;br /&gt;
              unless  an  invalid option is encountered, an error occurs while&lt;br /&gt;
              reading or writing the history file, an invalid offset  is  sup‐&lt;br /&gt;
              plied as an argument to -d, or the history expansion supplied as&lt;br /&gt;
              an argument to -p fails.&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ history&lt;br /&gt;
    1  okular Downloads/2014013331452638NGELO\(1\).pdf&lt;br /&gt;
    2  ls -al *.pdf&lt;br /&gt;
    3  ls -al Downloads/*.pdf&lt;br /&gt;
    4  ssh myrddin&lt;br /&gt;
    5  su -&lt;br /&gt;
    6  cd ComandosDeLaTerminal/&lt;br /&gt;
    7  vi Source&lt;br /&gt;
    8  bash Source &lt;br /&gt;
    9  echo $MiVariable&lt;br /&gt;
   10  cat Source &lt;br /&gt;
   11  echo $TuVariable&lt;br /&gt;
   12  . /Source&lt;br /&gt;
   13  . ./Source&lt;br /&gt;
            .&lt;br /&gt;
[rrc@Llawyr ~]$ history -d 3&lt;br /&gt;
[rrc@Llawyr ~]$ history&lt;br /&gt;
    1  okular Downloads/2014013331452638NGELO\(1\).pdf&lt;br /&gt;
    2  ls -al *.pdf&lt;br /&gt;
    3  ssh myrddin&lt;br /&gt;
    4  su -&lt;br /&gt;
    5  cd ComandosDeLaTerminal/&lt;br /&gt;
    6  vi Source&lt;br /&gt;
    7  bash Source &lt;br /&gt;
    8  echo $MiVariable&lt;br /&gt;
    9  cat Source &lt;br /&gt;
   10  echo $TuVariable&lt;br /&gt;
   11  . /Source&lt;br /&gt;
   12  . ./Source&lt;br /&gt;
   13  echo $TuVariable&lt;br /&gt;
         .&lt;br /&gt;
[rrc@Llawyr ~]$ history 10&lt;br /&gt;
  125      6  vi Source&lt;br /&gt;
  126      7  bash Source &lt;br /&gt;
  127      8  echo $MiVariable&lt;br /&gt;
  128      9  cat Source &lt;br /&gt;
  129     10  echo $TuVariable&lt;br /&gt;
  130     11  . /Source&lt;br /&gt;
  131     12  . ./Source&lt;br /&gt;
  132     13  echo $TuVariable&lt;br /&gt;
  133  history -d 133&lt;br /&gt;
  134  history 10&lt;br /&gt;
        .&lt;br /&gt;
[rrc@Llawyr ~]$ !!&lt;br /&gt;
history 10&lt;br /&gt;
  125      6  vi Source&lt;br /&gt;
  126      7  bash Source &lt;br /&gt;
  127      8  echo $MiVariable&lt;br /&gt;
  128      9  cat Source &lt;br /&gt;
  129     10  echo $TuVariable&lt;br /&gt;
  130     11  . /Source&lt;br /&gt;
  131     12  . ./Source&lt;br /&gt;
  132     13  echo $TuVariable&lt;br /&gt;
  133  history -d 133&lt;br /&gt;
  134  history 10&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ !-129&lt;br /&gt;
echo $TuVariable&lt;br /&gt;
&lt;br /&gt;
Mira ^P &amp;lt;Enter&amp;gt;&lt;br /&gt;
[rrc@Llawyr ~]$ echo $TuVariable&lt;br /&gt;
&lt;br /&gt;
Presiona ^p más de una ves&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ !vi&lt;br /&gt;
vi Source&lt;br /&gt;
&lt;br /&gt;
# vi ~/.bash_profile&lt;br /&gt;
HISTSIZE=450&lt;br /&gt;
HISTFILESIZE=450&lt;br /&gt;
&lt;br /&gt;
export HISTCONTROL=ignorespace&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ history&lt;br /&gt;
  143 echo $TuVariable&lt;br /&gt;
  144  cat HOLD&lt;br /&gt;
  145 cat HOLD &lt;br /&gt;
  146  history | less&lt;br /&gt;
  147  clear&lt;br /&gt;
  148  export HISTCONTROL=ignorespace&lt;br /&gt;
  149  history&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$  ls -ald&lt;br /&gt;
drwxr-xr-x 56 rrc rrc 20480 Feb 14 15:42 ./&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ history&lt;br /&gt;
  143 echo $TuVariable&lt;br /&gt;
  144  cat HOLD&lt;br /&gt;
  145 cat HOLD &lt;br /&gt;
  146  history | less&lt;br /&gt;
  147  clear&lt;br /&gt;
  148  export HISTCONTROL=ignorespace&lt;br /&gt;
  149  history&lt;br /&gt;
  150  history&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ history -c&lt;br /&gt;
[rrc@Llawyr ~]$ history&lt;br /&gt;
    1  history&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>