informatica:linux:comandes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:linux:comandes [2013/07/03 09:02] – external edit 127.0.0.1 | informatica:linux:comandes [2024/06/04 11:15] (current) – [History] jose | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== sshfs ====== | ||
+ | mount ssh | ||
+ | apt-get install sshfs | ||
+ | |||
+ | Montar para usuario normal | ||
+ | sshfs root@192.168.1.2:/ | ||
+ | |||
====== SFTP ====== | ====== SFTP ====== | ||
Line 50: | Line 57: | ||
#screen -S titulo | #screen -S titulo | ||
- | Recuperar | + | Recuperar sesión |
+ | screen -r titulo | ||
+ | |||
+ | Si está atachada, al poner -R mayúscula crea una nueva con el mismo nombre: | ||
screen -R titulo | screen -R titulo | ||
Line 90: | Line 100: | ||
# screen -x usuariAmbScreen/ | # screen -x usuariAmbScreen/ | ||
+ | |||
+ | ===== 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 141: | Line 156: | ||
egrep ' | egrep ' | ||
+ | |||
+ | * Poner color grep grepcolor. Lo ponemos en el / | ||
+ | alias grep=' | ||
====== Sintaxis bash ====== | ====== Sintaxis bash ====== | ||
Line 270: | Line 288: | ||
comm --nocheck-order -23 archivo1 archivo2 | comm --nocheck-order -23 archivo1 archivo2 | ||
- | ====== | + | |
+ | ====== | ||
+ | |||
+ | If you see a message like: | ||
+ | |||
+ | error while loading shared libraries: libzmq.so.1 | ||
+ | |||
+ | Then try rebuilding the dynamic linking cache with sudo ldconfig prior to building pyzmq. | ||
+ | |||
+ | ====== History | ||
Introducir fecha y hora en el comando " | Introducir fecha y hora en el comando " | ||
Line 282: | Line 309: | ||
No incluir en comando " | No incluir en comando " | ||
- | |||
echo ' | echo ' | ||
exit | exit | ||
+ | |||
+ | Historía infinita sin límite de entradas. Suele venir limitado y no ves los comandos de hace muuuucho tiempo | ||
+ | HISTSIZE=-1 | ||
+ | HISTFILESIZE=-1 | ||
+ | |||
+ | |||
+ | ====== Archivos ====== | ||
+ | |||
+ | * Obtener el el " | ||
+ | |||
+ | awk ' | ||
+ | 37 | ||
+ | |||
+ | ====== Abrir correos formato .eml ====== | ||
+ | |||
+ | mv correo.eml correo.mht | ||
+ | chromium correo.mht | ||
+ | | ||
+ | ====== Determinar si puerto de red cableado ====== | ||
+ | |||
+ | Listar interfaces: | ||
+ | |||
+ | ifconfig -a | grep "Link encap" | ||
+ | |||
+ | Ver si la boca esta cableada: | ||
+ | |||
+ | ethtool p1p3 | grep "Link detected" | ||
+ | |||
+ | ====== Listar bibliotecas requeridas por un ejecutable ====== | ||
+ | |||
+ | < | ||
+ | sudo objdump -x adb | grep NEEDED | ||
+ | |||
+ | NEEDED | ||
+ | NEEDED | ||
+ | NEEDED | ||
+ | NEEDED | ||
+ | NEEDED | ||
+ | NEEDED | ||
+ | NEEDED | ||
+ | </ | ||
+ | |||
+ | ====== Listar bibliotecas compartidas requeridas ====== | ||
+ | |||
+ | < | ||
+ | ldd / | ||
+ | linux-vdso.so.1 => (0x00007fffde3ff000) | ||
+ | libmysqlclient.so.18 => / | ||
+ | libnetsnmp.so.15 => not found | ||
+ | libcurl.so.4 => / | ||
+ | libm.so.6 => / | ||
+ | libdl.so.2 => / | ||
+ | librt.so.1 => / | ||
+ | libresolv.so.2 => / | ||
+ | libc.so.6 => / | ||
+ | libz.so.1 => / | ||
+ | libpthread.so.0 => / | ||
+ | libidn.so.11 => / | ||
+ | librtmp.so.0 => / | ||
+ | libssl.so.1.0.0 => / | ||
+ | libcrypto.so.1.0.0 => / | ||
+ | libgssapi_krb5.so.2 => / | ||
+ | liblber-2.4.so.2 => / | ||
+ | libldap_r-2.4.so.2 => / | ||
+ | / | ||
+ | libgnutls.so.26 => / | ||
+ | libgcrypt.so.11 => / | ||
+ | libkrb5.so.3 => / | ||
+ | libk5crypto.so.3 => / | ||
+ | libcom_err.so.2 => / | ||
+ | libkrb5support.so.0 => / | ||
+ | libsasl2.so.2 => / | ||
+ | libgssapi.so.3 => / | ||
+ | libtasn1.so.6 => / | ||
+ | libp11-kit.so.0 => / | ||
+ | libgpg-error.so.0 => / | ||
+ | libkeyutils.so.1 => / | ||
+ | libheimntlm.so.0 => / | ||
+ | libkrb5.so.26 => / | ||
+ | libasn1.so.8 => / | ||
+ | libhcrypto.so.4 => / | ||
+ | libroken.so.18 => / | ||
+ | libffi.so.6 => / | ||
+ | libwind.so.0 => / | ||
+ | libheimbase.so.1 => / | ||
+ | libhx509.so.5 => / | ||
+ | libsqlite3.so.0 => / | ||
+ | libcrypt.so.1 => / | ||
+ | </ | ||
+ | |||
+ | ====== Comandos relacionados con DNS ====== | ||
+ | |||
+ | * Encontrar servidores " | ||
+ | < | ||
+ | dig +short NS stackoverflow.com | ||
+ | </ | ||
+ | o: | ||
+ | < | ||
+ | dig +nssearch stackoverflow.com | ||
+ | </ | ||
+ | |||
+ | ====== Generar una cadena de texto con el contenido de un archivo ====== | ||
+ | |||
+ | Encriptar: | ||
+ | |||
+ | cat .ssh/ | ||
+ | |||
+ | Desencriptar: | ||
+ | |||
+ | cat .ssh/ | ||
+ |
informatica/linux/comandes.1372842169.txt.gz · Last modified: 2015/04/13 20:19 (external edit)