当前文件夹中删除除了install_agent之外的文件
[oracle@mysql ~]$ ls -lrt
total 1478408
-rwxr-x--- 1 oracle oinstall 747358549 Sep 30 2016 agentcore.bin
-r-xr-x--- 1 oracle oinstall 230027 Sep 30 2016 zip
-r-xr-x--- 1 oracle oinstall 145976 Sep 30 2016 unzip
-r-xr-x--- 1 oracle oinstall 4161 Sep 30 2016 agent.rsp
-rw-rw---- 1 oracle oinstall 179 Sep 30 2016 agentimage.properties
-r-xr-x--- 1 oracle oinstall 68283 Sep 30 2016 agentDeploy.sh
drwxr-x--- 3 oracle oinstall 4096 Jul 25 21:15 oradiag_oracle
-rwxr-x--- 1 oracle oinstall 274 Aug 3 06:28 plugins.txt
drwxr-x--- 2 oracle oinstall 4096 Aug 3 06:28 plugins
-rw-r----- 1 oracle oinstall 765835958 Aug 3 08:40 13.2.0.0.0_AgentCore_226.zip
-rw-r----- 1 oracle oinstall 77686 Aug 3 08:50 agentDeploy_2019-08-03_08_50_26.log
-rw-r----- 1 oracle oinstall 52 Aug 3 08:50 agentDeploy_2019-08-03_08_50_26.err
-rw-r----- 1 oracle oinstall 50 Aug 3 08:52 agentDeploy_2019-08-03_08_52_26.log
-rw-r----- 1 oracle oinstall 103 Aug 3 08:52 agentDeploy_2019-08-03_08_52_26.err
drwxrwx--- 2 oracle oinstall 4096 Aug 3 08:54 locks
drwxrwx--- 2 oracle oinstall 4096 Aug 3 08:54 ContentsXML
-rw-r----- 1 oracle oinstall 127 Aug 3 08:56 agentDeploy_2019-08-03_08_53_05.err
-rw-r----- 1 oracle oinstall 364 Aug 3 08:58 plugins.txt.status
-rw-r----- 1 oracle oinstall 85169 Aug 3 09:00 agentDeploy_2019-08-03_08_53_05.log
drwxr----- 2 oracle oinstall 4096 Aug 3 09:51 bea
drwxrwx--- 3 oracle oinstall 4096 Aug 3 20:08 backup
drwxrwx--- 2 oracle oinstall 4096 Aug 3 20:08 logs
drwxr-x--- 2 oracle oinstall 4096 Aug 3 20:34 install_agent
[oracle@mysql ~]$ pwd
/home/oracle
[oracle@mysql ~]$ ls |grep -v ^in
13.2.0.0.0_AgentCore_226.zip
agentcore.bin
agentDeploy_2019-08-03_08_50_26.err
agentDeploy_2019-08-03_08_50_26.log
agentDeploy_2019-08-03_08_52_26.err
agentDeploy_2019-08-03_08_52_26.log
agentDeploy_2019-08-03_08_53_05.err
agentDeploy_2019-08-03_08_53_05.log
agentDeploy.sh
agentimage.properties
agent.rsp
backup
bea
ContentsXML
locks
logs
oradiag_oracle
plugins
plugins.txt
plugins.txt.status
unzip
zip
[oracle@mysql ~]$ ls |grep -v ^in|xargs rm -rf
[oracle@mysql ~]$ ls
install_agent