<?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>Norse Technologies Knowledge Base&#187; date</title>
	<atom:link href="http://kb.norsetech.net/tag/date/feed/" rel="self" type="application/rss+xml" />
	<link>http://kb.norsetech.net</link>
	<description>Free Knowledge Articles</description>
	<lastBuildDate>Wed, 11 Jan 2012 00:53:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Make a Backup Script for Shell in Linux</title>
		<link>http://kb.norsetech.net/how-to-make-a-backup-script-for-shell-in-linux/</link>
		<comments>http://kb.norsetech.net/how-to-make-a-backup-script-for-shell-in-linux/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 02:47:18 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backing up files]]></category>
		<category><![CDATA[backup copy]]></category>
		<category><![CDATA[backup script]]></category>
		<category><![CDATA[code comments]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[command line argument]]></category>
		<category><![CDATA[command line interface]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[config files]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[DATECODE]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[good habit]]></category>
		<category><![CDATA[habit]]></category>
		<category><![CDATA[IMHO]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[myfile]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[TIMECODE]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=182</guid>
		<description><![CDATA[For those who hack a lot of Linux at the command line interface, backing up files such as config files before editing is a good habit to have. IMHO anyway. So to save time, a little script can be written, chmod +x, and placed into /usr/local/bin or some other that users have in their executable [...]]]></description>
			<content:encoded><![CDATA[<p>For those who hack a lot of Linux at the command line interface, backing up files such as config files before editing is a good habit to have. IMHO anyway. So to save time, a little script can be written, chmod +x, and placed into /usr/local/bin or some other that users have in their executable shell PATH. I name mine &#8220;bu&#8221; to make it easy, and it takes one command line argument which is the filename of the file you want to make a backup copy of. It is called by running something like <strong>$ bu <em>myfile </em></strong></p>
<p><strong><em></em></strong>Here&#8217;s the code. Comments welcome ;) The code creates a timecode based on today&#8217;s date and the current time to the second, and appends that to the original filename. The a copy is saved with this new &#8220;timestamped&#8221; backup filename, right in the same directory. Easy-peasy!Â <strong><em></em></strong></p>
<pre>#!/bin/bash
OLDFILENAME=$1
DATECODE=$(date +%Y%m%d)
TIMECODE=$(date +%H%M%S)
NEWFILENAME="${OLDFILENAME}_backup${DATECODE}-$TIMECODE"
cp $OLDFILENAME $NEWFILENAME
SUCCESS=$?
if [ $SUCCESS -eq 0 ];then
 echo "OK! Copied \"$OLDFILENAME\" to \"$NEWFILENAME\""
else
 echo "FAIL! You'll need to try again!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
fi</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-make-a-backup-script-for-shell-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update Microsoft Windows Defender manually</title>
		<link>http://kb.norsetech.net/update-microsoft-windows-defender-manually/</link>
		<comments>http://kb.norsetech.net/update-microsoft-windows-defender-manually/#comments</comments>
		<pubDate>Sun, 21 Oct 2007 22:08:08 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Freeware]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[confirmation]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[fwlink]]></category>
		<category><![CDATA[Info]]></category>
		<category><![CDATA[kind]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[linkid]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[microsoft windows defender]]></category>
		<category><![CDATA[mpas]]></category>
		<category><![CDATA[ONLY]]></category>
		<category><![CDATA[Open]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[platforms]]></category>
		<category><![CDATA[scoop]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[update microsoft]]></category>

		<guid isPermaLink="false">http://norsetech.net/kb/?p=29</guid>
		<description><![CDATA[Microsoft makes manual download of update files easily accessible at this link: http://go.microsoft.com/fwlink/?linkid=70631 This will download a file called Mpas-fe.exe Try to save the file in a location that you can get to easily with a command prompt. (ie. C:\ ) Then, open a command prompt and run the program using the -q switch. It [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft makes manual download of update files easily accessible at this link:</p>
<p><a title="Defender Update manual Microsoft Windows" href="http://go.microsoft.com/fwlink/?linkid=70631">http://go.microsoft.com/fwlink/?linkid=70631</a></p>
<p>This will download a file called <em><span class="userInput">Mpas-fe.exe</span></em><br />
Try to save the file in a location that you can get to easily with a command prompt. (ie. C:\  )<br />
Then, open a command prompt and run the program using the <strong>-q</strong> switch. It looks like this:</p>
<p><strong><span class="userInput">Mpas-fe.exe -q</span> </strong></p>
<p>The program will run quickly, and won&#8217;t give you any kind of confirmation that it has run or finished.</p>
<p>Open the Microsoft Windows Defender window to see what date your definition files have. This is how you can be sure that the update was successful.</p>
<p>IMPORTANT: The above info applies ONLY to 32-bit Operating Systems. For those of you using 64-bit platforms, see the full scoop here:</p>
<p><a title="Windows Defender update for 32-bit and 64-bit operasting systems manual download" href="http://support.microsoft.com/kb/923159">http://support.microsoft.com/kb/923159 </a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/update-microsoft-windows-defender-manually/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set time at command line in Linux</title>
		<link>http://kb.norsetech.net/set-time-at-command-line-in-linux/</link>
		<comments>http://kb.norsetech.net/set-time-at-command-line-in-linux/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 18:30:50 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Clock]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[Format]]></category>
		<category><![CDATA[hour]]></category>
		<category><![CDATA[hour hour]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[linux flavors]]></category>
		<category><![CDATA[minute]]></category>
		<category><![CDATA[MMDDhhmmYYYY]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[system clock]]></category>
		<category><![CDATA[YYYY]]></category>

		<guid isPermaLink="false">http://norsetech.net/kb/?p=14</guid>
		<description><![CDATA[This works for all Linux flavors as far as I know: The date command is used to set the system clock using the switch -s and the format MMDDhhmmYYYY (where MM=month, DD=day, hh=24-hour hour, mm=minute, YYYY=year) The following example sets the date to January 5th 2007, 1:15 PM: # date -s 010513152007]]></description>
			<content:encoded><![CDATA[<p>This works for all Linux flavors as far as I know:</p>
<p>The <strong>date</strong> command is used to set the system clock using the switch <strong>-s</strong> and the format MMDDhhmmYYYY (where MM=month, DD=day, hh=24-hour hour, mm=minute, YYYY=year)</p>
<p>The following example sets the date to <em>January 5th 2007, 1:15 PM</em>:</p>
<p><code># date -s 010513152007</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/set-time-at-command-line-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

