<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="https://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="https://wellformedweb.org/CommentAPI/"
	xmlns:dc="https://purl.org/dc/elements/1.1/"
	xmlns:atom="https://www.w3.org/2005/Atom"
	xmlns:sy="https://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tips and Tricks &#187; linux</title>
	<atom:link href="/blog/tag/linux-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://legend.ws/blog</link>
	<description>Random tech ramblings</description>
	<lastBuildDate>Thu, 19 Jul 2012 16:10:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Deleting a file, the name of which starts with a hyphen (Linux)</title>
		<link>https://legend.ws/blog/tips-tricks/deleting-a-file-starting-with-a-hyphen-on-linux/</link>
		<comments>https://legend.ws/blog/tips-tricks/deleting-a-file-starting-with-a-hyphen-on-linux/#comments</comments>
		<pubDate>Mon, 02 May 2011 10:08:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[hyphen]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">https://legend.ws/blog/?p=147</guid>
		<description><![CDATA[<p><a href="/blog/wp-content/uploads/2011/05/shell.png"></a><a href="/blog/wp-content/uploads/2011/05/rm.png"></a>You might have come across a difficulty in deleting a file in Linux whose name starts with a dash/hyphen.</p>
<p>Adding an escape character (e.g. rm -rf \-filename) or quoting the file name (e.g. rm -rf &#8220;-filename&#8221;) will not do the job.</p>
<p>The solution is simple: explicitly provide the full or relative path to the file. e.g.:</p>
<p>rm -rf /path/to/-file</p>
<p>or the following &#8211; if for instance your current working directory is the one containing the file in question</p>
<p>rm -rf ./-file&#8230;</p>]]></description>
		<wfw:commentRss>https://legend.ws/blog/tips-tricks/deleting-a-file-starting-with-a-hyphen-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: finding files modified or accessed at a certain time</title>
		<link>https://legend.ws/blog/tips-tricks/linux-finding-files-modified-or-accessed-at-a-certain-time/</link>
		<comments>https://legend.ws/blog/tips-tricks/linux-finding-files-modified-or-accessed-at-a-certain-time/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 19:10:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[range]]></category>

		<guid isPermaLink="false">https://legend.ws/blog/?p=136</guid>
		<description><![CDATA[<p>The &#8216;find&#8217; utility is quite handy when used with the proper parameters. Below is a few ways to find files/folders based on the time they were accessed or modified.</p>
<p><strong>Example 1</strong>:</p>
<p>find /path/to/folder -type f -name &#8220;*.txt&#8221; -mtime -5</p>
<p>This will find &#8216;files&#8217; (-type f) within the folder /path/to/folder (or one of its sub directories), whose name ends with &#8216;.txt&#8217;, and which were <span style="text-decoration: underline;">modified</span> (<span style="text-decoration: underline;">m</span>time) <strong>less than 5 days ago</strong></p>
<p><strong>Example 2:</strong></p>
<p>find /path/to/folder -type d -name &#8220;stat*&#8221; -mtime +10</p>
<p>This would find &#8216;directories&#8217; (-type d) within the folder /path/to/folder (or one of its subdirectories), whose name &#8230;</p>]]></description>
		<wfw:commentRss>https://legend.ws/blog/tips-tricks/linux-finding-files-modified-or-accessed-at-a-certain-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
