There was a situation where someone moved the entire rootdir to subdir on a remote system, so all system tools like cp, mv, etc., no longer worked. We had an active session, but could not find a way to copy / move files using only bash built-in modules.
Does anyone know how to achieve this?
I even thought about copying a cp or mv binary to currentdir using
while read -r; do echo $LINE; done
and then redirect this to a file, but that did not work. Guess because of all the special non-printable characters in the binary that cannot be copied / displayed with an echo.
thanks.
linux bash solaris
Kulldox
source share