LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Getting the sub-pages of a web-page (https://www.linuxquestions.org/questions/linux-newbie-8/getting-the-sub-pages-of-a-web-page-500052/)

manolakis 11-09-2006 08:22 AM

Getting the sub-pages of a web-page
 
Hey there!!!
Does anyone know how we I get the sub web-directories of a web-site?
Lets set the case that the given (awebsite.com) has got (awebsite.com/sub-site).
I am using Linux(BackTrack) and i want to do this through a console window
if u know can u tell me as well how can i access this site(no access restrictions).
For example if we are in a dir 'smth' and a subdir of this is 'smthElse' then we normally use cd smthElse. In the case of web surfing how can this be achieved.

Thanks for your time

fordeck 11-09-2006 08:30 AM

Normally you would provide links on your main page awebsite.com/index.html. The index.html page is typically a default. But if somebody knew the path they could enter a url like http://www.awebsite.com/smth/smthElse/<filename> if no filename is entered then index.html is assumed

pixellany 11-09-2006 09:22 AM

Quote:

Originally Posted by manolakis
Hey there!!!
Does anyone know how we I get the sub web-directories of a web-site?
Lets set the case that the given (awebsite.com) has got (awebsite.com/sub-site).
I am using Linux(BackTrack) and i want to do this through a console window
if u know can u tell me as well how can i access this site(no access restrictions).
For example if we are in a dir 'smth' and a subdir of this is 'smthElse' then we normally use cd smthElse. In the case of web surfing how can this be achieved.

Thanks for your time

When you go to a website, you are entering at a particular point in the directory tree AND FILE on that server. As already stated, the default is "index.html".
You can only access other files and directories if you know the names AND if the site manager has given permission.
For example, I might have a directory named "private" at the entry level on my site (the same level where index.html lives) You could not access this unless I set the permissions.

There is no equivalent to "cd" when using a web browser.


All times are GMT -5. The time now is 10:59 AM.