码迷,mamicode.com
首页 > 系统相关 > 详细

linux 几个逼格高实用的命令

时间:2018-05-23 18:04:00      阅读:700      评论:0      收藏:0      [点我收藏+]

标签:ascii   nss   命令   agent   mina   roo   security   gen   relink   

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

技术分享图片

 

linux 几个逼格高实用的命令

标签:ascii   nss   命令   agent   mina   roo   security   gen   relink   

原文地址:https://www.cnblogs.com/shanhua-fu/p/9077903.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!