User Tools

Site Tools


informatica:linux:script

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
Next revisionBoth sides next revision
informatica:linux:script [2019/08/31 16:19] joseinformatica:linux:script [2020/09/14 18:57] jose
Line 790: Line 790:
   20190420_225307   20190420_225307
  
-====== Poner fecha en historial history ======+====== History ====== 
 + 
 +===== Poner fecha en historial history =====
 export HISTTIMEFORMAT='%d/%m/%Y %H:%M:%S: ' export HISTTIMEFORMAT='%d/%m/%Y %H:%M:%S: '
  
-====== Salir terminal sin grabar history ======+===== Salir terminal sin grabar history =====
   kill -9 $$   kill -9 $$
 +
 +===== Historial infinito =====
 +export HISTSIZE=""
 +
 +
  
 ====== Unixtime ====== ====== Unixtime ======
Line 925: Line 932:
 ===== Formatear xml ===== ===== Formatear xml =====
   :%!xmllint --encode UTF-8 --format -   :%!xmllint --encode UTF-8 --format -
 +===== Carácteres especiales =====
 +Para ver los carácteres especiales:
 +  :set list
 +Vi añade newline al final de fichero. Si obtenemos el error **No newline at end of file** al hacer un diff por ejemplo, podemos hacer esto para verlo, aparecerà un \n en uno de los ficheros al final:
 +  od -c fichero
  
 ====== Buscar paquete debian ====== ====== Buscar paquete debian ======
 +Instalamos apt-file y hacemos apt-file update. Buscamos:
 +  apt-file search --regexp '/identify$'
 +Que lo que hace es esta búsqueda:
   # apt-file search /usr/bin/identify   # apt-file search /usr/bin/identify
   graphicsmagick-imagemagick-compat: /usr/bin/identify   graphicsmagick-imagemagick-compat: /usr/bin/identify
informatica/linux/script.txt · Last modified: 2023/10/10 18:11 by jose