I want to knew if the following robots.txt file block the whole pages from being indexed or not.
User-agent: *
Disallow:
Disallow: /cgi-bin/
You can easily test in your Google Webmaster Tools account. But the answer is, no. It does not block your whole site. You block the /cgi-bin/
directory in line three. Line two essentially explicitly allows your entire site to be crawled. See the robots.txt documentation for more on this.
Disallow:
) is not required (the default action is to allow).