Need Install

  • ncdu
  • htop
  • iftop
  • zathura for PDF
  • ydcv for Translate
  • geany for Code
  • octave for Calculate (like matlab)

Programm

Net

  • namp 网络扫描工具
    • nmap -p22 xx.xx.xx.0/24 扫描 22 端口。
    • nmap -sP xx.xx.xx.0/24 扫描运行中的 ip。
  • ip a
  • ip link set dev eth0 up/down
  • arq
  • netstat -lntp
  • ss -antp
  • ss -s
  • ss -lt
    Linux 介绍十五
  • dhclient
  • /etc/network/interfaces
  • iptables track network trans
    • iptables -I INPUT -d xx.xx.xx.xx
    • iptables -I OUTPUT -s xx.xx.xx.xx
    • iptables -I INPUT -d xx.xx.xx.xx -p tcp --dport 80
    • iptables -I OUTPUT -s xx.xx.xx.xx -p tcp --sport 80
    • iptables -n -v -L -t filter show

File

  • tar xzvf
  • tar czvf *.tar *
  • ag -g filename
  • mv/cp/ls/
  • du -d 1 -h
  • df -h
  • ln -sf source targetName
  • extundelete /dev/sda4 --restore-file directory/file

Job

  • fg
  • bg
  • ps A
  • ps auwx or ps -ef
  • pgrep -l
  • (command &)
  • Ctrl+z

Edit

  • sed
  • awk
  • xargs
  • grep

System

  • dmesg
  • chmod
  • chown