Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using an arbitrary web browser, e.g. firefox, you can save a web page (complete web page), for which it saves the html file, say n.html, and web page elements in a corresponding directory, n_files.

In Win7, if you copy, move, rename either the folder of the html file, they are modified as a single unit. However, Nautilus (the default Gnome file manager), does not do this.

Is there a Nautilus script available to enable this functionality? Is there an alternative way to achieve the same thing?

share|improve this question
up vote 2 down vote accepted

I suppose the renaming functionality in Explorer is based on special attributes in the filesystem that Explorer recognises (that's how most of such functionality in explorer works). It would be possible to implement something similar in GNOME / Nautilus (provided you're using a filesystem that supports extended attributes), but AFAIK it doesn't exist currently.

Another possibility would be to write a nautilus plugin that uses some heuristics to detect such html file + corresponding directory and do what you want, but again I don't know of an existing solution (it's also not trivial to implement correctly).

I suggest using the UnMHT addon for Firefox to save the page in one file (maybe there is something similar for other browsers too).

Unlike the Mozilla Archive Format (aka MAF), MHT (aka MHTML) is standardized in an official specification (RFC2557) and it is also supported by IE and other applications, which makes it more future-proof. There are also MHT-viewing plugins for Opera & Safari. (Firefox extension + viewers for Opera, Safari & QuickLook)

The Firefox addon is also on Mozilla's addon-site.

share|improve this answer
Writing a nautilus extensions seems like the right way to go. I've got tens of thousands of pages saved over the years. I tend to reorganise them and delete them in non-deterministic ways (so I can't just use a shell script). I'll write an extension over the weekend and post a link here. – Nicholas Ochiel Aug 27 '10 at 11:00
Another option might be to convert everything to .mht, not sure if any tools exist for that (or maybe you can script Firefox or xulrunner with that addon installed). – JanC Aug 27 '10 at 18:39
Thanks for mentioning that. It turns out that while I was thrashing away at nautilus extensions and shell scripts, the option was there all along in the umht settings: – Nicholas Ochiel Aug 31 '10 at 18:20

You can download the entire thing using wget.

wget -r --level=0 --convert-links --page-requisites --no-parent

-r means it's recursive

--level=0 means it goes down an infinite amount of levels (so will be saved, not just the top level page)

--convert-links means it converts the links from <a href="">link</a> to <a href="page.html">link</a>

--page-requisites means it downloads everything that's required to display the page properly. Like images, javascripts, etc.

--no-parent means it doesn't download pages that are "higher up". So if you want and "below", won't be downloaded.

share|improve this answer
That's a nice answer -- but has nothing to do with the question, right? – Marcel Stimberg Aug 10 '10 at 14:21
Seeing as how there's no way to complete the user goal in Nautilus, I posted another way to achieve the same goal. That should be the most important thing, should it not? – Tommy Brunn Aug 10 '10 at 14:26
No because the user in this question has already downloaded the webpages, they're now renaming them in Nautilus. – 8128 Aug 13 '10 at 6:28
Actually, unfortunately, this isn't even "another way to achieve the same goal". I've got a large archive of saved files and folders and I need to manage them. – Nicholas Ochiel Aug 27 '10 at 11:49

There's a firefox extension for saving a web page and all it's supporting stuff in a single file: Mozilla Archive Format (with Faithful Save) . I haven't used it personally, but it sounds like what you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.