zoukankan      html  css  js  c++  java
  • linux下一些常用系统命令

    查看系统打开的文件数
    lsof|wc -l
    
    查看当前目录下的文件数
    find -type f | wc -l
    
    查看某个目录下的文件数,注意这里/home包括其所有子目录
    find /home -type f | wc -l
    
    ----------------------------------------------------------
    # gzip压缩一个文件
    gzip -9 -c dmsrelayv2_2010-09-15.sql > dmsrelayv2_2010-09-15.sql.gz
    
    ----------------------------------------------------------
    linux下清除DNS缓存
    /usr/sbin/rndc flush
    
    ----------------------------------------------------------
    linux如何强制踢出登录用户
    
    $ w //显示当前登陆用户
    13:15:06 up 1:25, 2 users, load average: 0.01, 0.01, 0.00
    USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
    jjony pts/0 xxx.xxx.xxx.xxx 00:10 0.00s 0.03s 0.01s w
    root pts/1 xxx.xxx.xxx.xxx 00:20 1:25 0.34s 0.34s -bash
    
    pkill -KILL -t pts/0 可将jjony强制踢出
    ----------------------------------------------------------
    dig -t mx +noall +answer ureymixi.jp ureymixi.jp uehuyex.info urtuihico.info urtiyhiewat.net utrhyeuz.net
    dig -t mx +noall +answer -f filename
    ----------------------------------------------------------

    版权声明:本文为博主原创文章,未经博主允许不得转载。

  • 相关阅读:
    21. 斐波那契数列
    22. 旋转数组的最小数字
    php图像处理链接
    FileOprSer.class.php(文件上传与下载类)
    SqlHelper.class.php+分页类方法
    file写入方式 和copy
    file 读取方式
    pytest+allure+jenkins 持续集成平台生成allure报告
    memcached cas操作
    php-fpm
  • 原文地址:https://www.cnblogs.com/weiguo21/p/4824011.html
Copyright © 2011-2022 走看看