命令行神器

#unix #Linux #Commands

工具类

tldr

tldr stands for “Too Long; Didn’t Read”. The TLDR pages are a community effort to simplify the beloved man pages with practical examples.

    # Install with python
    sudo pip install tldr
    # example
    tldr tar
ag

A code searching tool similar to grep, with a focus on speed.

    sudo apt-get install silversearcher-ag
    # example
    ag 'foo'   # grep 'foo'  . -R *
shellcheck

A shell script static analysis tool.

    sudo apt-get install shellcheck
    shellcheck yourscript.sh
htop and glances

htop is an interactive process viewer for Unix. It provides more beautiful and more convenient process monitoring results in comparing with top. While glances is more powerful than htop.

    sudo apt install htop
    htop

    sudo apt-get install glances
    glances
axel

多线程下载工具,下载文件时可以替代curl、wget

    sudo apt-get install axel
    axel -n 20 http://centos.ustc.edu.cn/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso
cloc

用来统计代码行数,统计结果比较分类比较详细,支持大部分编程语言

    sudo apt-get install cloc
    cloc .
figlet

将输入字符转换成艺术字体

    sudo apt-get install figlet 
    figlet 'HiFiLES'
mackup

Keep your application settings in sync.

wtf

缩略语查询

    sudo apt install bsdgames
    wtf atm
fcrackzip

A braindead program for cracking encrypted ZIP archives

script

The script command makes a typescript of the terminal session.