[ubuntu-uk] blooper: overwrote /usr/share/bin ?

Tyler J. Wagner tyler at tolaris.com
Mon Jul 26 17:32:14 BST 2010


On Monday 26 July 2010 16:25:43 ByteSoup wrote:
> sudo cp <filename> /usr/share/bin
> 
> Missing the trailing "/" and now instead of the directory
> /usr/share/bin, i have a file called "bin". Now is this as I suspect
> trashed the directory, or was /usr/share/bin normally a symlink to
> another directory anyway?

If you type that command and a directory /usr/share/bin already exists, you 
will copy <filename> into it. If that directory does not exist, you will copy 
<filename> to /usr/share and rename it to bin.

/usr/share/bin is not a standard directory in any Linux distribution of which 
I am aware. You may be confusing it with /usr/local/bin.

Regards,
Tyler

-- 
"Offending fundamentalists isn't my goal – but if it is an inevitable
side-effect of defending human rights, so be it."
   -- Johann Hari



More information about the ubuntu-uk mailing list