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