Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is there any way to create a symbolic link to a URL?

Update: I need to symlink it to an HTTP URL.

Update: The reason I want to do this is so that I can move this symlink to another computer without having to copy the file itself (it's big), and instead, the other computer will just use the online copy from the URL.

share|improve this question
URL's have little to do with HTTP (assuming that's what's implied). That's why it's explicitly http:// at the beginning. You need to be more specific. Wouldn't just mounting WebDAV do, using davfs, again assuming you're on Linux? – Daniel Beck Apr 29 '11 at 20:26
What do you want to do? Should a browser open if you click it? Or why you need such a link? – binfalse Apr 29 '11 at 20:27
You still haven't told us the protocol this is about. It could as well be file://, indicating a path on the local file system, http://, https://, ftp://, svn://, etc. – Daniel Beck Apr 29 '11 at 20:34
It is an http:// url – SZH Apr 29 '11 at 20:37
Consider using WebDAV. Otherwise, most systems allow the storing of URL references, e.g. .url files on Windows or .webloc files on Mac OS X. – Daniel Beck Apr 29 '11 at 20:44
up vote 9 down vote accepted

It's not possible to create a symlink to an URL. If you can make executables and the target OS is Linux-alike, you can create a file which opens the URL as in:

x-www-browser ''
share|improve this answer
If your default browser is Firefox and your also have Chrome installed, Chrome might open the URL due to a Firefox bug with "alternatives" system in dpkg. – dotnetCarpenter Oct 25 '15 at 13:33

If you are using a GUI desktop in Linux, like Gnome or Unity, you can drag and drop a URL from Firefox and other browsers either onto the desktop or into a folder in the Nautilus file manager. This will create a .desktop file with several lines in it like this one:

[Desktop Entry]
Name=Link to Google Calendar

As long as you are in the GUI, you can just double-click on the file to open it into the default Web browser. I do this in Ubuntu to store links to documents in my private Drupal wiki on my machine.

This may work for KDE, xfce, and other desktop managers, but I haven't tried it.

share|improve this answer

It's not possible to link to a HTTP location. You might be able to mount the location of this file via WebDAV to your system and link to the local mount, but this only works if it's configured to get exported via WebDAV..
But if you want to read the file (I think you are trying to do so), you anyhow have to download the content (even if it would be possible to create such a link). So I recommend to simply download it.

share|improve this answer
But if you download it and it changes, your downloaded copy is out of date. – endolith Apr 6 '12 at 14:29

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.