Rescuing Linux: Difference between revisions

Line 41: Line 41:


==all my binaries are gone==
==all my binaries are gone==
The situation can arise that one has an active process context (we'll assume a shell) on a machine where the standard POSIX binaries are unavailable. This can happen due to e.g. a network error, a disk error, memory error, wayward <tt>rm -rf /</tt>, misadventures in package management. What can be done in such a case?
The situation can arise that one has an active process context (we'll assume a shell) on a machine where the standard POSIX binaries are unavailable. This can happen due to e.g. a network error, a disk error, memory error, wayward <tt>rm -rf /</tt>, misadventures in package management. What can be done in such a case? Shell builtins, [[sysfs]], <tt>/dev</tt> entries, and [[proc]] usually continue to be available.
===cat without cat===
===cat without cat===
The bash shell's <tt>echo</tt> or <tt>printf</tt> builtin can be used:
The bash shell's <tt>echo</tt> or <tt>printf</tt> builtin can be used: