首页 > 代码库 > Shell tips

Shell tips

  • 获得计算机cpu的个数:
    cat /proc/cpuinfo | grep processor | wc -l