You are not logged in.

#1 2018-08-31 05:39:32

easydizzy
Member
Registered: 2017-12-22
Posts: 11

[SOLVED] accidentally deleted /bin

I accidentally deleted /bin instead of ./bin. I haven't rebooted yet. I wonder if there is a quick way to recover it? Thanks.

Last edited by easydizzy (2018-08-31 06:13:43)

Offline

#2 2018-08-31 05:45:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] accidentally deleted /bin

Is /usr/bin still there?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-08-31 05:47:33

easydizzy
Member
Registered: 2017-12-22
Posts: 11

Re: [SOLVED] accidentally deleted /bin

jasonwryan wrote:

Is /usr/bin still there?

Yes, /usr/bin is fine.

Offline

#4 2018-08-31 05:48:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] accidentally deleted /bin

bin/ is a symlink to usr/bin.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-08-31 05:51:51

easydizzy
Member
Registered: 2017-12-22
Posts: 11

Re: [SOLVED] accidentally deleted /bin

jasonwryan wrote:

bin/ is a symlink to usr/bin.

Okay. So I only need to restore symlink to /usr/bin ?

Will the following work?

ln -s /usr/bin /bin

Last edited by easydizzy (2018-08-31 05:53:33)

Offline

#6 2018-08-31 05:56:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] accidentally deleted /bin

Then reinstall the filesystem package.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2018-08-31 06:10:35

easydizzy
Member
Registered: 2017-12-22
Posts: 11

Re: [SOLVED] accidentally deleted /bin

pacman -S filesystem

seems enough (it created the symlink for me). Not sure if I need to symlink maunnally

Last edited by easydizzy (2018-08-31 06:11:11)

Offline

Board footer

Powered by FluxBB