LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2009, 06:41 AM   #1
christianunix
Member
 
Registered: Oct 2007
Posts: 40

Rep: Reputation: 15
Website file listing?


Is there any way to view all files under website directory?
Suppose we have a website that goes

www.website.com/directory

is there any way to view all files under /directory?

I can think of using the utility named wget?

should it be

wget -r *.* http://www.website.com/directory

thanks!!
 
Old 04-12-2009, 06:47 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
from man wget

Code:
-r
--recursive
Turn on recursive retrieving.

-l depth
--level=depth
Specify recursion maximum depth level depth.  The default maximum depth is 5.
 
Old 04-12-2009, 11:43 AM   #3
themanwhowas
Member
 
Registered: Nov 2005
Distribution: CentOS 5, Fedora 23
Posts: 216

Rep: Reputation: 29
I may be mistaken but WGET is used to get files, ie, download them, not just list them
 
Old 04-12-2009, 08:23 PM   #4
maresmasb
Member
 
Registered: Apr 2009
Posts: 108

Rep: Reputation: 24
To view files in a website directory the website must be configured to allow for that. If this option is turned down, then you need to know the exact filename to access it. Even if the option is enabled - if the directory has index.html, index.htm, index.php or similar file, then directory contents will not be listed.

Last edited by Tinkster; 10-30-2010 at 04:19 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash script for listing FTP usage as the file name of a file created in each share jojothedogboy Programming 1 12-05-2008 04:35 PM
Listing directories only from tar file? Ion42 Linux - Newbie 2 11-12-2006 12:27 PM
listing file systemcall athena_1 Programming 1 07-29-2006 08:16 AM
File listing in webserver jaakkop Programming 3 12-17-2005 08:31 AM
File Listing of a DAT Tape solex Linux - General 7 08-31-2004 01:00 PM


All times are GMT -5. The time now is 12:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration