How to rename libc.a back
I am working on AIX 6.1 and inadvertently renamed /usr/lib/libc.a
to usr/lib/libc.a_
Just as I renamed I realized my stupid mistake. Almost all of the commands mv
, cp
, ftp
etc ( except cd
) have stopped working.
How shall I rename by libc.a
back. Without it, the system hardly functions sanely :(
Solution 1:
Most of the binaries depend/use on the libc
library. To find out, you can use ldd /path/to/binary
It seems that you need to boot another image or live CD. Then, you can mount the relevant partition (/usr
if it is separated or /
) and rename the file.
Solution 2:
Just posting this in case someone else searches for this issue.
Since at least AIX 5.3 IBM has provided the recovery shell recsh
just for this issue.
Check IBM Documentation.
Example of use: recsh; cp -p libc.a.new /usr/lib/libc.a; exit