美文网首页
Ubuntu 常用的 Bash Script

Ubuntu 常用的 Bash Script

作者: lucientlau | 来源:发表于2018-01-20 21:48 被阅读0次

    list all installed software

    dpkg -l
    

    list specified software install path

    lut@lut-X405UA:~/Downloads$ dpkg -L ftp
    /.
    /usr
    /usr/bin
    /usr/bin/netkit-ftp
    /usr/share
    /usr/share/doc
    /usr/share/doc/ftp
    /usr/share/doc/ftp/BUGS
    /usr/share/doc/ftp/copyright
    /usr/share/doc/ftp/README.Debian
    /usr/share/doc/ftp/changelog.Debian.gz
    /usr/share/man
    /usr/share/man/man1
    /usr/share/man/man1/netkit-ftp.1.gz
    /usr/share/man/man5
    /usr/share/man/man5/netkit-netrc.5.gz
    
    

    view binary file

    #firs moethod use od command
    od binaryfile
    #second method use vim
    1   vim -b your_binary_file
    2   vim
    2   :%!xxd -g 1
    

    vim find

    :/string
    n  # find next
    

    相关文章

      网友评论

          本文标题:Ubuntu 常用的 Bash Script

          本文链接:https://www.haomeiwen.com/subject/tltxaxtx.html