User Tools

Site Tools


informatica:linux:comandes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:linux:comandes [2020/03/18 12:39] – [Comandos relacionados con DNS] javiinformatica:linux:comandes [2024/06/04 11:15] (current) – [History] jose
Line 100: Line 100:
  
   # screen -x usuariAmbScreen/nomSessió   # screen -x usuariAmbScreen/nomSessió
 +
 +===== Hacer Scroll =====
 +Con screen no nos podemos hacer scroll en la ventana, con la rueda del ratón por ejemplo.
 +
 +Se hace pulsando ctrl+a, luego esc y nos movemos con los cursores como si fuera un fichero de texto
  
 ====== Eliminar pitido shell ====== ====== Eliminar pitido shell ======
Line 151: Line 156:
   egrep '(hola|como|estas)' fichero.txt   egrep '(hola|como|estas)' fichero.txt
  
 +
 +* Poner color grep grepcolor. Lo ponemos en el /etc/profile para todos usuarios
 +    alias grep='grep --color=auto'
  
 ====== Sintaxis bash ====== ====== Sintaxis bash ======
Line 289: Line 297:
 Then try rebuilding the dynamic linking cache with sudo ldconfig prior to building pyzmq. Then try rebuilding the dynamic linking cache with sudo ldconfig prior to building pyzmq.
  
-====== Varios ======+====== History ======
  
 Introducir fecha y hora en el comando "history": Introducir fecha y hora en el comando "history":
Line 304: Line 312:
   echo 'export HISTTIMEFORMAT=ignorespace >> ~/.bash_profile   echo 'export HISTTIMEFORMAT=ignorespace >> ~/.bash_profile
   exit   exit
-   + 
-Poner color grep grepcolorLo ponemos en el /etc/profile para todos usuarios +Historía infinita sin límite de entradasSuele venir limitado y no ves los comandos de hace muuuucho tiempo 
-    alias grep='grep --color=auto'+  HISTSIZE=-
 +  HISTFILESIZE=-1 
  
 ====== Archivos ====== ====== Archivos ======
informatica/linux/comandes.1584535190.txt.gz · Last modified: 2020/03/18 12:39 by javi