• 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使用量较高的进程

  • 相关阅读:
    SQL Server 查看物理页存储
    Sql Server 孤立用户解决办法
    大文件下载
    UITableViewCell
    xib文件的使用
    UIToolbar
    UIView常见的属性和方法
    iOS的三种多线程技术:
    网络处理文件上传、获取文件MIMEType、其他HTTP请求方式
    转场动画过渡效果
  • 原文地址:https://www.cnblogs.com/shanhua-fu/p/9077903.html
Copyright © 2020-2023  润新知