informatica:linux:script
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatica:linux:script [2019/08/31 16:19] – jose | informatica:linux:script [2020/03/08 14:08] – jose | ||
---|---|---|---|
Line 790: | Line 790: | ||
20190420_225307 | 20190420_225307 | ||
- | ====== Poner fecha en historial history | + | ====== History ====== |
+ | |||
+ | ===== Poner fecha en historial history ===== | ||
export HISTTIMEFORMAT=' | export HISTTIMEFORMAT=' | ||
- | ====== 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 ====== |
informatica/linux/script.txt · Last modified: 2023/10/10 18:11 by jose