[ubuntu-uk] non-blooper: did not overwrote /usr/share/bin

Neil Greenwood neil.greenwood.lug at gmail.com
Mon Jul 26 21:52:16 BST 2010


On 26 July 2010 16:47, ByteSoup <bytesoup at gmail.com> wrote:
> On 26/07/10 16:37, Paul Sladen wrote:
>
> On Mon, 26 Jul 2010, ByteSoup wrote:
>
>
> sudo cp <filename> /usr/share/bin
> was /usr/share/bin normally a symlink to another directory anyway?
>
>
> '/usr/share/bin' does not normally exist.  You have just created it (as a
> file).  You can read about the purpose of '/usr/share/*' over in the
> Filesystem Hierarchy Standard (FHS):
>
>
> http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREARCHITECTUREINDEPENDENTDATA
>
>   "The /usr/share hierarchy is for all read-only
>   architecture independent data files.".
>
> Perhaps you were after '/usr/local/bin/' ?
>
> 	-Paul
>
>
> Ha ha! Thanks to everyone who replied... your right! I was trying to put the
> shell script into the common directory thats in your normal path as a user
> /usr/local/bin. I blame turning 40 this year :-P
>
> Anyway the "cp" command wont allow you to overwrite a directory with a file
> normally will it? I thought Id just missed the trailing space and begun to
> worry.
>

Correct. It will put the file into the directory instead.

Cofion/Regards,
Neil.



More information about the ubuntu-uk mailing list