Symlink to a URL

symbolic-linkurl

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.

Best Answer

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:

#!/bin/sh
x-www-browser 'http://example.com/your/link'
Related Question