LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-20-2015, 07:38 AM   #1
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Rep: Reputation: Disabled
Looking for Linux's alternative to 'folder2hyperlinks'...


Hello

I have several files (audio/video/text) in directory with multiple sub-directory trees within it. I'm looking for an application or trick which will create single html page with hyperlinks to respective sub-directories and all files within it. Like 'Table of Contents' page.

This way I can bookmark that page in web browser. So searching (Ctrl+F) for files and executing them will be easy.

Windows has this application - 'folder2hyperlinks'. Googled for linux alternative, but results i'm getting are for softlinks and hardlinks only.

Thanks
 
Old 09-20-2015, 09:04 AM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,649

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Suppose the top-level directory you are interested in is '/home/jeremy/texmf'
then use file:///home/jeremy/texmf in your web-browser to get a ftp-like display.

It isn't that useful though - I would just use your file manager.
 
Old 09-20-2015, 09:18 AM   #3
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Current: Debian and OpenSUSE. Past: Arch, RedHat (pre-RHEL). FreeBSD & OpenBSD novice, Hackintosh
Posts: 1,192
Blog Entries: 7

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Any reason you don't want to use your file manager's search capabilities, or find?

Do you want all files, even in subdirectories on one page? If you desire the latter, this quick and dirty one liner will do it. Be warned, it doesn't create a valid webpage, but works in Iceweasel/Firefox, at least:

Code:
find -type f -fprintf file_index.html "<a href=\"p\">\n%p</a><br />"
 
  


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
Linux alternative milles21 Linux - Software 2 08-18-2007 11:00 PM
problems with windows programs in linux (QEMU, WINE, or linux alternative) bulldogzerofive Linux - Software 2 08-18-2005 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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