Editing /etc/hosts file in backtrack

327 Views Asked by At

I want to edit /etc/hosts file for using at localhost.I get some website html file using wget command and I put them to /var/ directory for reaching from browser while being offline.When I write "localhost" to browser,index.html file come.But when I try to click the other tabs,Browser try to reach the "http://....." and nothing came.If I change "http://..." with "localhost/",pages come.How can I edit the /etc/hosts file for browsing offline the site which I was put under /var/ directory? Here is my wget command that I used at backtrack; wget --recursive --level=2 --no-clobber --user-agent=Mozilla --html-extension --convert-links http://...... -P /var/ Thanks in advance.

0

There are 0 best solutions below