[GTALUG] How much do you know about how linux executes binaries?
Kevin Cozens
kevin at ve3syb.ca
Wed Dec 11 15:46:25 EST 2019
On 2019-12-11 12:27 p.m., Lennart Sorensen via talk wrote:
> Someone at work just made a slight mistake:
>
> root at ECA:~# cd /var
> root at ECA:/var# mv core.* /* [clearly that trailing * was not meant to be there]
[snip]
> So what do you do now?
All the files and directories in the root directory will have been moved in
to the /var directory with the exception of the /lib and /opt directories
which already existed in /var.
First step is move the bin directory back to its normal position using
"bin/mv bin /". After that command you will have normal access to ls and mv
once more and you can move other files and directories out of /var and back
to / where they belong.
--
Cheers!
Kevin.
http://www.ve3syb.ca/ | "Nerds make the shiny things that
https://www.patreon.com/KevinCozens | distract the mouth-breathers, and
| that's why we're powerful"
Owner of Elecraft K2 #2172 |
#include <disclaimer/favourite> | --Chris Hardwick
More information about the talk
mailing list