Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-12-2009, 05:41 AM   #1
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

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

I can think of using the utility named wget?

should it be

wget -r *.*

Old 04-12-2009, 05:47 AM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
from man wget

Turn on recursive retrieving.

-l depth
Specify recursion maximum depth level depth.  The default maximum depth is 5.
Old 04-12-2009, 10:43 AM   #3
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, 07:23 PM   #4
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 03:19 PM.


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 03:35 PM
Listing directories only from tar file? Ion42 Linux - Newbie 2 11-12-2006 11:27 AM
listing file systemcall athena_1 Programming 1 07-29-2006 07:16 AM
File listing in webserver jaakkop Programming 3 12-17-2005 07:31 AM
File Listing of a DAT Tape solex Linux - General 7 08-31-2004 12:00 PM > Forums > Linux Forums > Linux - Newbie

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

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