<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MrBrown blob &#187; coretutils</title>
	<atom:link href="http://charles.lescampeurs.org/tag/coretutils/feed" rel="self" type="application/rss+xml" />
	<link>http://charles.lescampeurs.org</link>
	<description>random bits.</description>
	<lastBuildDate>Sat, 10 Apr 2010 09:02:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The unix touch command</title>
		<link>http://charles.lescampeurs.org/2008/09/11/the-unix-touch-command</link>
		<comments>http://charles.lescampeurs.org/2008/09/11/the-unix-touch-command#comments</comments>
		<pubDate>Thu, 11 Sep 2008 05:30:19 +0000</pubDate>
		<dc:creator>CharlyBr</dc:creator>
				<category><![CDATA[Command line]]></category>
		<category><![CDATA[coretutils]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://charles.lescampeurs.org/?p=53</guid>
		<description><![CDATA[This post is a quick ref on the linux touch command. All the examples have been tested on Linux. This command is used to update the access and modification times of files. touch&#8217;s syntax touch [option] file_name(s) touch file1 file2 file3 Here some examples: # touch /tmp/file # ls -l /tmp/file rw-r--r-- 1 charlybr charlybr [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2008%2F09%2F11%2Fthe-unix-touch-command"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2008%2F09%2F11%2Fthe-unix-touch-command&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This post is a quick ref on the linux touch command. All the examples have been tested on Linux.</p>
<p>This command is used to update the access and modification times of files.</p>
<ul>
<li>touch&#8217;s syntax</li>
</ul>
<pre>touch [option] file_name(s)
touch file1 file2 file3</pre>
<ul>
<li>Here some examples:</li>
</ul>
<pre># touch /tmp/file
# ls -l /tmp/file
rw-r--r-- 1 charlybr charlybr 0 Sep 10 16:13 /tmp/file</pre>
<ul>
<li>Update access and modification time to current time:</li>
</ul>
<pre># ls -l /tmp/file
rw-r--r-- 1 charlybr charlybr 0 Sep 10 16:13 /tmp/file
# touch /tmp/file
# ls -l /tmp/file
rw-r--r-- 1 charlybr charlybr 0 Sep 10 16:14 /tmp/file</pre>
<ul>
<li>Update access and modification time to a specified timestamp ([[CC]YY]MMDDhhmm[.ss] format):</li>
</ul>
<pre># touch -t 09091842 /tmp/file
# ls -l /tmp/file
-rw-r--r-- 1 charlybr charlybr 0 Sep  9 18:42 /tmp/file</pre>
<ul>
<li>Update access and modification time to a specified date</li>
</ul>
<pre># touch -d '9 Sep' /tmp/file
# ls -l /tmp/file
-rw-r--r-- 1 charlybr charlybr 0 Sep  9 00:00 /tmp/file
# touch -d '9 Sep 2008 13:14' /tmp/file
# ls -l /tmp/file
-rw-r--r-- 1 charlybr charlybr 0 Sep  9 13:14 /tmp/file</pre>
<h2>Links</h2>
<ul>
<li>touch is part of the <a title="Coreutils package" href="http://www.gnu.org/software/coreutils/" target="_blank">Coreutils</a> package</li>
<li><a title="touch documentation page" href="http://www.gnu.org/software/coreutils/manual/html_node/touch-invocation.html#touch-invocation" target="_blank">touch documentation page</a></li>
<li><a title="touch man page on FreeBSD" href="http://www.freebsd.org/cgi/man.cgi?query=touch&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+7.0-RELEASE&amp;format=html" target="_blank">man page on FreeBSD</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://charles.lescampeurs.org/2008/09/11/the-unix-touch-command/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
