content

Comandos | mama libre

Mama Libre, blog dedicado a gnu/linux & compañía. Una alternativa para postear ya que en algunos foros conocidos hay ciertas reglas que lo impiden. Sumate!

Publicado el 20 de marzo de 2016, 21:00 hs

Inicio » Foros » Software (NO servicio tecnico)

Comandos Enviado por mama21mama el Mié, 27/07/2011 - 11:48. Software (NO servicio tecnico)

Lugar donde iré agregando los comandos que uso frecuentemente. Una buena técnica es si la tarea es usar varios comandos para una funcionalidad es ponerle algún nombre. Así con esto lograremos recordarlos a todos. Ejemplo de este es Xrec ps fax | grep Z|grep -v grepMuestra procesos zombie cd /var/lib;sudo -u mysql myisamchk -r -v mysql/nombre bd/tablaRepara casi cualquier cosa de mysql for f in *; do rm "$f"; doneSi sale esta salida bash: /bin/rm: La lista de argumentos es demasiado larga ese comando es la solucion sed 's/hola/hi/' test.txtReemplaza la palabra "hola" por "hi" en el archivo test.txt sudo netstat -apn|grep 80 | grep lighttpdquien esta conectado al puerto 80 con el servidor web lighttpd sudo netstat -apn|grep 8080 | grep pythonquien esta conectado al puerto 8080 sudo netstat -apn|grep 8000 | grep gnuquien esta conectado al murmur en el puerto 8000 sudo netstat -apn|grep 59049 | grep squidIPs detrás del squid sudo tail -f /var/log/squid/access.logque se baja que del squid sudo du /media/Disco160/cache/squid --max-depth=1 -htamaño de la cache del squid 20 * * * 1 rm /var/log/kern.log.120 * * * 1 rm /var/log/ufw.log.120 * * * 1 rm /var/log/kern.log20 * * * 1 rm /var/log/ufw.log via crontab #!/bin/bashscreen -U irssiexit 0 inicio de irssi con screen ps aux | grep irssibuscando el pid de irssi screen -rS pidreviviendo irssi con screen convert -compress jpeg *.jpg mydoc.pdfjpg a pdf nmap mamalibre.no-ip.org -p 80 -sVque version de programa en el puerto 80 tracepath mamalibre.no-ip.orghaciendo un tracer para averiguar por donde van los paquetes. sudo hdparm -tT /dev/sdaTestea performance del Harddisk, tiempos de lecturas -t Perform timings of device reads for benchmark and comparison purposes. For meaningful results, this opera‐ tion should be repeated 2-3 times on an otherwise inactive system (no other active processes) with at least a couple of megabytes of free memory. This displays the speed of reading through the buffer cache to the disk without any prior caching of data. This measurement is an indication of how fast the drive can sustain sequential data reads under Linux, without any filesystem overhead. To ensure accurate measurements, the buffer cache is flushed during the processing of -t using the BLKFLSBUF ioctl. -T Perform timings of cache reads for benchmark and comparison purposes. For meaningful results, this opera‐ tion should be repeated 2-3 times on an otherwise inactive system (no other active processes) with at least a couple of megabytes of free memory. This displays the speed of reading directly from the Linux buffer cache without disk access. This measurement is essentially an indication of the throughput of the proces‐ sor, cache, and memory of the system under test.

grep -irn "/page/" tdf.php | grep -v LoggBuscar el codigo /page/ en en tdf.php, se podria buscar en todos los archivos cambiando a . cat << EOF > a.txtcreando archivos con "Here document", luego de esa linea se presiona enter y para terminar EOF+ enter netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nrquien esta conectado wc -l filemuestra el número de salto de línea ls -lct /etc | tail -1 | awk '{print $6, $7, $8}'Para saber la fecha de la instalación de GNU/Linux comando | curl -F 'sprunge=<-' http://sprunge.uspastebin desde terminal Si tiene interes y quieres añadir algun comando util puedes agregarlo en el comentario. Agregar a favoritos/Buscar esta entrada con

‹ Instalacion paso a paso de lupu 525 Usando identi.ca en pidgin ›

Tweet

3010 lecturas | Comandos Enviado por mama21mama el Mié, 27/07/2011 - 11:48. Software (NO servicio tecnico) | Tweet | Buscar

Inicio de sesión

Navegación Bitácoras Foros Revisa tu Correo Lista de usuarios Usuarios por puntos Historial Cumpleaños Envíos recientes

Traducir

Canal #supremos servidor irc.freenode.net El topic para #supremos es Bienvenidos al canal Supremos, dedicado al Software Libre y Gnu/Linux.

Redes Sociales en las que ando

Temas nuevos No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk más

Temas activos No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk más

Comentarios recientes

La nueva red inalámbrica

Entradas recientes en bitácoras No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk No Prescription Levothyroxine Levothroid Uk más

Actualmente hay 1 usuario y 1 invitado en línea.Usuarios en líneascrubbingimpatience

Links Absolut Office Gajim-Decoy Linux Q Maximiliano Bonetti Mumble Server - Publico Planeta Supremos Portal Supremos Registra dominios .tk gratis Wiki - Guía para Ubuntu Wiki - Team Supremo | Redes Sociales en las que ando Comandos Enviado por mama21mama el Mié, 27/07/2011 - 11:48. Software (NO servicio tecnico) Tweet Redes Sociales en las que ando

← Volver al blog