Skip to content

Instantly share code, notes, and snippets.

@kragen
Created January 23, 2012 16:37
Show Gist options
  • Save kragen/1664147 to your computer and use it in GitHub Desktop.
Save kragen/1664147 to your computer and use it in GitHub Desktop.

bash y el terminal

  • ^L
  • job control: ^Z, bg, fg, ^C, ^\
    • disown
    • kill -STOP, kill -CONT
  • reseteo de terminal: reset
  • historia de bash: ^R
    • ^X ^E
    • !!
    • !$, Alt-.
  • secuencias de escape: usando cat para verlos
  • pushd, popd, cd -, ~-
  • watch
  • killall

apt/dpkg/debsums

  • apt-cache search
  • apt-get install
  • apt-get update
  • apt-get upgrade
  • type y dpkg -S
  • dpkg -L
  • debsums
  • dpkg -l
  • Synaptic
  • apt-get remove
  • apt-get source y debian/rules build

screen y ssh

  • para reconectar screen -DURR
  • para compartir la pantalla screen -x
  • ssh -D
  • ssh -R
  • | ssh host cmd |

El filesystem

  • du, df
  • rsync
  • FHS:
    • /etc
    • /tmp
    • /var
      • /var/log
        • tail -f
      • /var/tmp
    • /usr
      • /usr/bin
      • /usr/share/doc
    • /bin
    • /sbin
  • locate
  • mount, mount --bind

Interfaz entre el kernel y los otros programas

  • syscalls
  • ELF
    • objdump
    • xxd
  • strace
  • sacando un stack trace con GDB

Monitoreo de performance etc.

  • top y htop
  • iostat, vmstat, y dstat
  • lsof
  • powertop, iotop

Iniciar la máquina, y drivers

  • el bootloader
  • init y /etc/init.d
  • upstart
  • BIOS y EFI
  • lspci, lsusb, dmesg
  • modprobe, /proc/modules

Herramientas del shell

  • grep
  • awk
  • sort y uniq
  • find y xargs (y -0, y -P)
  • join y comm
  • dd
  • >() y <()
  • diff y patch

Perl

  • perl -pie, s///
  • perl -ne, print if

Networking

  • mtr
  • ifconfig
  • route -n
  • netstat -an
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment