ITPub博客

首页 > Linux操作系统 > Linux操作系统 > find and top

find and top

原创 Linux操作系统 作者:mugen 时间:2019-04-20 16:06:06 0 删除 编辑

Oracle produces many extraneous files: trace files, log files, dump

files, and so on. Unless they are cleaned periodically, they can fill

up the filesystem and bring the database to a halt.

To ensure that doesn't happen, simply search for the files with

extension "trc" and remove them if they are more than three days old. A

simple command does the trick:

find . -name "*.trc" -ctime +3 -exec rm {} ;

To forcibly remove them prior to the three-day limit, use the -f

option.


find . -name "*.trc" -ctime +3 -exec rm -f {} ;

If you just want to list the files:

find . -name "*.trc" -ctime +3 -exec ls -l {} ;


top

Column
Description

PID The process ID of the process
USER
The user running the process
PRI
The priority of the process
NI The nice value: The higher the value, the lower the priority of the

task
SIZE
Memory used by this process (code+data+stack)
RSS
The physical memory used by this process
SHARE
The shared memory used by this process
STAT
The status of this process, shown in code. Some major status codes

are:
R – Running
S –Sleeping
Z – Zombie
T – Stopped

You can also see second and third characters, which indicate:
W – Swapped out process
N – positive nice value
%CPU
The percentage of CPU used by this process
%MEM
The percentage of memory used by this process
TIME
The total CPU time used by this process
CPU
If this is a multi-processor system, this column indicates the ID of

the CPU this process is running on.
COMMAND The command issued by this process

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9408/viewspace-102388/,如需转载,请注明出处,否则将追究法律责任。

下一篇: RHCE ZT
请登录后发表评论 登录
全部评论

注册时间:2002-04-05

  • 博文量
    464
  • 访问量
    352746