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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -