<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux / UNIX: Delete a file</title> <atom:link href="http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: john</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-67080</link> <dc:creator>john</dc:creator> <pubDate>Tue, 17 Jan 2012 21:47:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-67080</guid> <description>is it possible for rm command to list what files are being deleted without being in interactive mode
for example if I want to delete contents of a directory
rm /directory/*
is there a way to list which files are being deleted WHILE they&#039;re being deleted?</description> <content:encoded><![CDATA[<p>is it possible for rm command to list what files are being deleted without being in interactive mode</p><p>for example if I want to delete contents of a directory</p><p>rm /directory/*</p><p>is there a way to list which files are being deleted WHILE they&#8217;re being deleted?</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-65724</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Sat, 17 Dec 2011 04:00:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-65724</guid> <description>See how to delete with file &lt;a href=&quot;http://www.cyberciti.biz/faq/linuxunix-move-file-starting-with-a-dash/&quot; rel=&quot;nofollow&quot;&gt;starting with a dash&lt;/a&gt;:
&lt;pre&gt;rm -- &#039;-i&#039;&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>See how to delete with file <a
href="http://www.cyberciti.biz/faq/linuxunix-move-file-starting-with-a-dash/" rel="nofollow">starting with a dash</a>:</p><pre>rm -- '-i'</pre>]]></content:encoded> </item> <item><title>By: iCyOMiK</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-65723</link> <dc:creator>iCyOMiK</dc:creator> <pubDate>Sat, 17 Dec 2011 03:56:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-65723</guid> <description>rm -- -i
read the f*****g manual of rm, you can got it.</description> <content:encoded><![CDATA[<p>rm &#8212; -i<br
/> read the f*****g manual of rm, you can got it.</p> ]]></content:encoded> </item> <item><title>By: user</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-65251</link> <dc:creator>user</dc:creator> <pubDate>Wed, 07 Dec 2011 05:33:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-65251</guid> <description>How to delete a file named -i in UNIX ?</description> <content:encoded><![CDATA[<p>How to delete a file named -i in UNIX ?</p> ]]></content:encoded> </item> <item><title>By: Ocean</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-64769</link> <dc:creator>Ocean</dc:creator> <pubDate>Wed, 23 Nov 2011 19:29:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-64769</guid> <description>I have a problem that I need a solution to.
How can I find the largest file and remove it with naming the file in Linux/Unix?
Any help would be appreciated.</description> <content:encoded><![CDATA[<p>I have a problem that I need a solution to.</p><p>How can I find the largest file and remove it with naming the file in Linux/Unix?</p><p>Any help would be appreciated.</p> ]]></content:encoded> </item> <item><title>By: Aram Iskenderian</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-61489</link> <dc:creator>Aram Iskenderian</dc:creator> <pubDate>Thu, 11 Aug 2011 19:52:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-61489</guid> <description>Satheesh,
See my post @ January 21, 2011 (scroll up to see it) and modify the startdate and startdate for your usage.</description> <content:encoded><![CDATA[<p>Satheesh,</p><p>See my post @ January 21, 2011 (scroll up to see it) and modify the startdate and startdate for your usage.</p> ]]></content:encoded> </item> <item><title>By: Neelesh</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-61484</link> <dc:creator>Neelesh</dc:creator> <pubDate>Thu, 11 Aug 2011 15:00:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-61484</guid> <description>Hi ,
After ls -lrt in a directory , it will give around 300 files with the most recently created/used file at the bottom. I want to delete the top 120 files from the directory. Can you please help. Thanks :)</description> <content:encoded><![CDATA[<p>Hi ,</p><p>After ls -lrt in a directory , it will give around 300 files with the most recently created/used file at the bottom. I want to delete the top 120 files from the directory. Can you please help. Thanks :)</p> ]]></content:encoded> </item> <item><title>By: satheesh</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-60636</link> <dc:creator>satheesh</dc:creator> <pubDate>Mon, 11 Jul 2011 06:45:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-60636</guid> <description>Sry the command is not working for me...</description> <content:encoded><![CDATA[<p>Sry the command is not working for me&#8230;</p> ]]></content:encoded> </item> <item><title>By: satheesh</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-60635</link> <dc:creator>satheesh</dc:creator> <pubDate>Mon, 11 Jul 2011 06:44:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-60635</guid> <description>How to delete few different files using unix rm command. I want to delte thousands of files which are older than 6 months.
Below i gave the command which i have been using the files. But it does work.
Command:
find /My Dir -name  &#039;1309927_sat_0407.price.xls  131011719_sat_0807.price.xls&#039; -mtime +180 -exec rm -f {} \;
Please help me.</description> <content:encoded><![CDATA[<p>How to delete few different files using unix rm command. I want to delte thousands of files which are older than 6 months.<br
/> Below i gave the command which i have been using the files. But it does work.<br
/> Command:<br
/> find /My Dir -name  &#8217;1309927_sat_0407.price.xls  131011719_sat_0807.price.xls&#8217; -mtime +180 -exec rm -f {} \;</p><p>Please help me.</p> ]]></content:encoded> </item> <item><title>By: Aram Iskenderian</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-60498</link> <dc:creator>Aram Iskenderian</dc:creator> <pubDate>Wed, 06 Jul 2011 02:50:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-60498</guid> <description>Try changing user or group ownership using chown for the files in question and then delete them again.</description> <content:encoded><![CDATA[<p>Try changing user or group ownership using chown for the files in question and then delete them again.</p> ]]></content:encoded> </item> <item><title>By: Aram Iskenderian</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-60497</link> <dc:creator>Aram Iskenderian</dc:creator> <pubDate>Wed, 06 Jul 2011 02:48:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-60497</guid> <description>1. Make a copy of the file.
2. Run the following.
$ sort myfile.txt &#124; uniq -uc</description> <content:encoded><![CDATA[<p>1. Make a copy of the file.<br
/> 2. Run the following.</p><p>$ sort myfile.txt | uniq -uc</p> ]]></content:encoded> </item> <item><title>By: Rohit Kumar</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-60488</link> <dc:creator>Rohit Kumar</dc:creator> <pubDate>Tue, 05 Jul 2011 12:36:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-60488</guid> <description>Hi
When i am trying to delete a files using rm,rm -f,rm -rf the files still exists in the directory.. I tried deleting it by changing permissions but not done.. Any help is appreciated</description> <content:encoded><![CDATA[<p>Hi<br
/> When i am trying to delete a files using rm,rm -f,rm -rf the files still exists in the directory.. I tried deleting it by changing permissions but not done.. Any help is appreciated</p> ]]></content:encoded> </item> <item><title>By: araa</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-59730</link> <dc:creator>araa</dc:creator> <pubDate>Wed, 01 Jun 2011 10:13:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-59730</guid> <description>Hello,
I want to display duplicate lines in a file, what command to display ?</description> <content:encoded><![CDATA[<p>Hello,<br
/> I want to display duplicate lines in a file, what command to display ?</p> ]]></content:encoded> </item> <item><title>By: roland</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-59538</link> <dc:creator>roland</dc:creator> <pubDate>Sat, 21 May 2011 02:11:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-59538</guid> <description>how can i delete  5 user&#039;s except admin in terminal?</description> <content:encoded><![CDATA[<p>how can i delete  5 user&#8217;s except admin in terminal?</p> ]]></content:encoded> </item> <item><title>By: Andrej</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-57080</link> <dc:creator>Andrej</dc:creator> <pubDate>Tue, 05 Apr 2011 10:55:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-57080</guid> <description>Hi,
I have created a long list (&gt;4.000 entries) of redundant files that need to be deleted. Typing the command:
xargs rm &lt; iTunesDeleteList
produces an error message:
xargs: unterminated quote.
I tried to replace spaces with &quot;\ &quot; but it didn&#039;t work. What should I do to make it work?Typical entry:
/Users/me/Music/iTunes/iTunes Media/Music/B.B. King/King Of The Blues [Disc 1]/1-23 Don&#039;t Answer The Door, Parts One And Two 1.mp3
Thanks,
Andrej</description> <content:encoded><![CDATA[<p>Hi,</p><p>I have created a long list (&gt;4.000 entries) of redundant files that need to be deleted. Typing the command:<br
/> xargs rm &lt; iTunesDeleteList</p><p>produces an error message:<br
/> xargs: unterminated quote.</p><p>I tried to replace spaces with &quot;\ &quot; but it didn&#039;t work. What should I do to make it work?Typical entry:<br
/> /Users/me/Music/iTunes/iTunes Media/Music/B.B. King/King Of The Blues [Disc 1]/1-23 Don&#039;t Answer The Door, Parts One And Two 1.mp3</p><p>Thanks,<br
/> Andrej</p> ]]></content:encoded> </item> <item><title>By: Somnath</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-56690</link> <dc:creator>Somnath</dc:creator> <pubDate>Mon, 28 Mar 2011 11:41:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-56690</guid> <description>How can I delete bunch of text file. I want to delete file for perticular range like
xxx24mar2010.txt  to xxx30mar2010.txt. Please suggest.</description> <content:encoded><![CDATA[<p>How can I delete bunch of text file. I want to delete file for perticular range like<br
/> xxx24mar2010.txt  to xxx30mar2010.txt. Please suggest.</p> ]]></content:encoded> </item> <item><title>By: Aram Iskenderian</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-56639</link> <dc:creator>Aram Iskenderian</dc:creator> <pubDate>Fri, 25 Mar 2011 09:12:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-56639</guid> <description>Thanks for the kind words.
I am glad I was able to help. :-)</description> <content:encoded><![CDATA[<p>Thanks for the kind words.<br
/> I am glad I was able to help. :-)</p> ]]></content:encoded> </item> <item><title>By: vickram</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-56638</link> <dc:creator>vickram</dc:creator> <pubDate>Fri, 25 Mar 2011 09:11:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-56638</guid> <description>Hi Aram ,
U r Great...Thanx alot for ur comment...it works...appriciated</description> <content:encoded><![CDATA[<p>Hi Aram ,</p><p>U r Great&#8230;Thanx alot for ur comment&#8230;it works&#8230;appriciated</p> ]]></content:encoded> </item> <item><title>By: Aram Iskenderian</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-56637</link> <dc:creator>Aram Iskenderian</dc:creator> <pubDate>Fri, 25 Mar 2011 08:23:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-56637</guid> <description>Phil,
The reason you are getting that error is because of the #.
Try the following.
rm \#payroll.txt\# (you can force it not to prompt you by specifying -f)
If you have files with numbers in them, you can always consider ?* wildcards.</description> <content:encoded><![CDATA[<p>Phil,<br
/> The reason you are getting that error is because of the #.</p><p>Try the following.<br
/> rm \#payroll.txt\# (you can force it not to prompt you by specifying -f)<br
/> If you have files with numbers in them, you can always consider ?* wildcards.</p> ]]></content:encoded> </item> <item><title>By: Aram Iskenderian</title><link>http://www.cyberciti.biz/faq/howto-linux-unix-delete-remove-file/#comment-56636</link> <dc:creator>Aram Iskenderian</dc:creator> <pubDate>Fri, 25 Mar 2011 08:20:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/linuxunix-delete-file.php#comment-56636</guid> <description>Hi vickram,
Take a look at my response to another post here by jestin dated January 21, 2011.
All you have to do is just specify the dates.</description> <content:encoded><![CDATA[<p>Hi vickram,</p><p>Take a look at my response to another post here by jestin dated January 21, 2011.<br
/> All you have to do is just specify the dates.</p> ]]></content:encoded> </item> </channel> </rss>
