Specify Sitemap In Robots.txt

Overview

When creating a new website, or updating an existing website, you need to tell google and other search engines where your sitemap is located. You can submit a sitemap to google using Google’s webmaster tools. A more convenient way is to Specify a Sitemap In Robots.txt file. The robots.txt file is located in the root of your web folder. Search engines generally access and adhere to information in your robots.txt. However this is not guaranteed. Specifying the location of your sitemap.xml in your robots.txt file is done by adding a single line to your existing robots.txt file. If you don’t have a robots.txt file you can create a new robots.txt file and then add the line as shown below.

Specify Sitemap In Robots.txt

Sitemap: http://example.com/sitemap_location.xml

It will now tell Google and other search engines where your sitemap is located on your website. The sitemap listed here can be either your full sitemap or even a top level sitemap that links to all your other sitemaps (if you have more than one sitemap.xml file).

Full Robots.txt Example

User-agent: *
Allow: /
Disallow: /example-folder/
Disallow: /another-folder/

Sitemap: http://www.example.com/sitemap.xml.gz

Interesting Facts About Unix Timestamps

Here are a couple of facts surrounding unix timestamps you may find interesting. A couple of these are tips I discovered and a couple found browsing the internet. If you are not sure what a timestamp is, then read this article on What Is A Unix Timestamp And Why Is It Useful

  • On January 19, 2038, the Unix Time Stamp will cease to work due to a 32-bit overflow. This will result in websites crashing if they are still using 32-bit cpu’s. Before this moment millions of applications will need to either adopt a new convention for time stamps or be migrated to 64-bit systems which will buy the time stamp a “bit” more time.
  • At 03:33:20 UTC on May 18, 2033, the Unix time reaches 2,000,000,000 seconds, the second billennium.
  • At 23:31:30 UTC on February 13, 2009, the Unix time number reached 1,234,567,890 seconds.
  • At 01:58:31 UTC on March 18, 2005, the Unix time number reached 1,111,111,111.
  • At 01:46:40 UTC on September 9, 2001, the Unix billennium (Unix time number 1,000,000,000) was celebrated.
  • At 00:37:33 UTC on July 21, 2069, the Unix time will represent the first 10 digits of pi, 3141592653. (This coincides with the 100th anniversary of the first manned Moon landing, occurring between the times of touchdown and the first moon walk.)
  • At 09:06:49 UTC on Jun 16, 2034, the Unix time reaches 2,034,061,609 seconds and thus matches the current time to the hour (2034061609) when displayed as YYYYMMDDHH.

Check If Linux OS Is 64 Bit or 32 Bit

Overview – How To Check If Linux OS Is 64 Bit or 32 Bit

If you have ever needed to know if you have 32 bit or 64 bit linux installed, there are a number of simple ways to find this out of which I will show you two ways.

Note that if your cpu architecture is a 64 bit cpu, then you are able to install either 32 bit or 64 bit versions of Linux (or any operating system for that matter). However if your cpu architecture is 32 bit, then you are only able to use the 32 bit version of linux. It should also be noted that you are will not be able to install 64 bit applications on a computer with a 64 bit cpu if the linux operating system is running a 32 bit version of linux.

First Method to check if linux os is 64 bit or 32 bit

In your linux shell, type the following:

getconf LONG_BIT

It will return either 32 if you have the 32 bit installated or 64 for 64 bit versions.

Second Method to check if linux os is 64 bit or 32 bit

In your linux shell, type the following:

uname -m

If it returns x86_64 then you have the 64 bit variation and if you see i686 (or even i586, i386, etc.).

64 bit Hardware Support

If you need to see if your cpu architecture supports 64 bit

cat /proc/cpuinfo