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

Alan Pope alan at popey.com
Mon Jul 26 16:29:01 BST 2010


On 26 July 2010 16:25, ByteSoup <bytesoup at gmail.com> wrote:
> I issued a silly command just now
>

I've seen more daft things typed into a terminal, often by me.

> 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?
>

We don't ship /usr/share/bin by default. Chances are there was nothing
there and you just made a file called /usr/share/bin with the contents
of the file.

If you _had_ typed what you typed and there _was_ a bin directory then
it would _not_ have overwritten but done what you expect and copy the
file into the /usr/share/bin/ folder with whatever name it had in your
current directory.

Maybe you meant /usr/local/bin ?

> If I need to re-install its not too great a job, i just thought seeing
> as i havent overwritten a file with another then it may not be so bad?
>

I doubt you need to reinstall as nothing would seem to be broken.

Al.



More information about the ubuntu-uk mailing list