• linux 几个逼格高实用的命令


    1.xargs

    [root@gdpsq1x25 log]# find . -type f -name "*.log" |sort -rn
    ./yum.log
    ./sssd/sssd_sudo.log
    ./sssd/sssd_pam.log
    ./sssd/sssd_nss.log
    ./sssd/sssd.log
    ./sssd/sssd_LDAP.log
    ./sssd/ldap_child.log
    ./security_scan/security_scan.log
    ./security_scan.log
    ./security_scan-alarm.log
    ./prelink/prelink.log
    ./ntp_sync_status.log
    ./hadoop-hdfs/hdfs-audit.log
    ./dstat_io.log
    ./dstat_cpu.log
    ./dracut.log
    ./diskhealth.log

    [root@gdpsq1x25 log]# find . -type f -name "*.log" |xargs file
    ./anaconda.ifcfg.log: ASCII text
    ./daney_security-alarm.log: ASCII text
    ./yum.log: ASCII text
    ./dstat_io.log: ASCII text, with no line terminators, with escape sequences
    ./cpuspeed_status.log: ASCII text
    ./cloudera-scm-agent/cloudera-flood.log: ASCII text
    ./cloudera-scm-agent/cloudera-scm-agent.log: ASCII English text, with very long lines
    ./cloudera-scm-agent/cmf_listener.log: ASCII text
    ./cloudera-scm-agent/supervisord.log: ASCII English text
    ./hadoop-hdfs/hdfs-audit.log: empty
    ./diskhealth.log: ASCII text
    ./security_scan/security_scan.log: ASCII text
    ./audit/audit.log: ASCII text
    ./conman/wosrepsum.log: ASCII text, with very long lines
    ./boot.log: ASCII English text, with CRLF, CR line terminators, with escape sequences
    ./sssd/sssd_pam.log: empty
    ./sssd/sssd_LDAP.log: empty
    ./sssd/sssd.log: empty
    ./sssd/ldap_child.log: empty
    ./sssd/sssd_sudo.log: empty

    2.找出当前系统内存使用量较高的进程

    3.找出当前系统CPU使用量较高的进程

  • 相关阅读:
    HttpInvoker GET/POST方式
    maven命令
    java内存简单描述
    零零碎碎之SPU与SKU
    ZooKeeper的ACL权限
    ZooKeeper常用命令行操作
    Zookeeper基本数据模型
    ZooKeeper的安装及部署
    ZooKeeper原理及介绍
    Shell脚本编程(一)
  • 原文地址:https://www.cnblogs.com/shanhua-fu/p/9077903.html
Copyright © 2020-2023  润新知