Wednesday, November 12, 2014

symbolic link - Symlink to a URL


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.


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'

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...