Get the latest tech news

When you deleted /lib on Linux while still connected via SSH (2022)


Let's first not talk about why this can happen, but deleting /lib, /usr/lib, or some other essential runtime files happens quite a lot (as you can see: here, here, here, and here). In this post, I will only discuss what happens when you delete /lib on Linux and how to recover from that. The easy

The easy solution for everything is to replace the missing files, but this can be difficult if/lib is deleted because we won’t have ld-linux, which is needed to run any dynamic executable. Please note that you need to set the environment variable LANG to C; Otherwise, this script will incorrectly handle Unicode bytes. Output exampleOf course, we can also write a complete program that makes the TCP connection instead of relying on bash redirection.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Linux

Linux

Photo of SSH

SSH

Related news:

News photo

"Termux + X11 on my Android tablet...feels pretty close to a real Linux setup."

News photo

AMD RDNA 3.5 Cleaner Shader Support Prepped For Linux 6.15

News photo

Code Submitted Ahead Of Linux 6.15 For Enabling Block Sizes Greater Than Page Size