Skip to content

Latest commit

 

History

History
87 lines (70 loc) · 1.52 KB

command_log.md

File metadata and controls

87 lines (70 loc) · 1.52 KB

Linux use log

docker server

docker run -it --rm -p 6080:80 dorowu/ubuntu-desktop-lxde-vnc

Interactive commands convert to scripts

tftp <<EOF
connect 192.168.111.1
mode binary
put dd-wrt.v24-13309_NEWD-2_K2.6_std_usb_ftp.bin
quit
EOF

Install dnsmasq in macOS

  • Install by brew

    brew install dnsmasq
    step by `brew info dnsmasq`
    
  • Configure with /usr/local/etc/dnsmasq.conf

    - append the line 'address=/double-click.net/127.0.0.1':
    ddress=/double-click.net/127.0.0.1
    address=/dev/127.0.0.1
    
    - test:
    dig abc.dev @127.0.0.1 
    
    - return:  ANSWER SECTION
    abc.dev.                0       IN      A       127.0.0.1
    
  • Global wild valid

    - way 1.
    add in setting preferences
    
    - way 2.(effective, according to `man 5 resolver`)
    sudo mkdir /etc/resolve
    echo 'nameserver 127.0.0.1' > /etc/resolver/dev
    

To Be Continued

add last command word

pressing Esc+Dot or typing !$, !*
echo !:1
!^ or !:1

want to use remi repo to install new software

sudo yum --enablerepo=remi install php-tcpdf

you can list repositories by:

yum repolist
yum repolist disabled

want to find string without binary files

grep to_find_string . -r -I
  • -r recursive
  • -I ignore binary

检测 vt-us1.vent.link 到本地的 ping 时长

traceroute -T -p 33322 vt-us1.vnet.link

yum warning RPMDB alter out of yum. because of rpm use none yum api to modify soft

yum clean all
yum history sync