[PLUG] Create symbolic link with "strange" file name.
Paul Heinlein
heinlein at madboa.com
Mon Aug 27 18:52:26 UTC 2007
On Mon, 27 Aug 2007, Aaron Baer wrote:
> To work around a broken html file referenced from a external site I
> don't have access to <frame src=""> tag which was recently updated
> with a broken image link I'm trying to create a symbolic link from
> the original file to the broken file name. However, ln seems to
> think I'm trying to give it an option to perform.. I've tried to
> escape with '-' and \- and "-_filename.gif" but it all seems to not
> work.. Any ideas?
>
> $ sudo -u www-data ln -s news_banner.gif '-'_banner.gif
> ln: invalid option -- _
> Try `ln --help' for more information.
>
> However, This does work but is a different file name so is only half of my
> problem solved:
>
> $ sudo -u www-data ln -s arc_right_news.gif arc_right_'-'.gif
Try prefixing the file name with a directory path:
ln -s news_banner.gif ./-_banner.gif
--
Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
More information about the PLUG
mailing list