bash - Copy binary file on Linux -
i have restricted environment, chrooted environment or vm, has following basic utilities available: bash, hostname, ls, mkdir, ping, rm, getent, id. /proc filesystem available.
all others utilities cp/cat unavailable, . possible copy file these utilities ?
to copy inputfile
outputfile
using bash
:
echo "$(<inputfile)" >outputfile
(limitation: nuls , trailing newlines omitted.)
Comments
Post a Comment