linux 几个逼格高实用的命令

Posted shanhua-fu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux 几个逼格高实用的命令相关的知识,希望对你有一定的参考价值。

1.xargs

[[email protected] 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

 

[[email protected] 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 几个逼格高实用的命令的主要内容,如果未能解决你的问题,请参考以下文章

Linux基础-运维工作中必用的几个命令

网络实用命令——traceroute/tracert

利用Python自动化生成逼格高的日历!简单又实用

几个Linux实用快捷键分享

Linux实用命令都有哪些?

超实用 Linux 常用命令