<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "[Linux]如何刪除大量檔案"]]></title>
		<link>https://forum.andowson.com/posts/list/16.page</link>
		<description><![CDATA[Latest messages posted in the topic "[Linux]如何刪除大量檔案"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>[Linux]如何刪除大量檔案</title>
				<description><![CDATA[ 今天發現一台機器CPU Loading超重，原來是不斷在發信，但是又發不出去，最後造成/var/spool/mqueue底下產生鉅量的檔案，每次重開機之後，就又開始重新發信，所以即使重開機之後CPU Loading還是一樣非常高。 
<br>
<br>
嘗試用rm -rf *去刪除，結果出現下面的訊息： 
<br>
[root@drweb1 mqueue]# rm -rf * 
<br>
-bash: /bin/rm: 引數列項目過長 
<br>
<br>
最後改用這個方式就成功了： 
<br>
[code]ls -l|awk '{print $9}'| xargs rm[/code] 
<br>
<br>
參考資料： 
<br>
http://plog.longwin.com.tw/my_note-unix/2007/01/18/file_most_cant_del_2007]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/241/371.page</guid>
				<link>https://forum.andowson.com/posts/preList/241/371.page</link>
				<pubDate><![CDATA[Fri, 2 May 2008 20:57:08]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
	</channel>
</rss>