from shutil import copyfile
copyfile("/root/a.txt", "/root/b.txt")
For further actions, you may consider blocking this person and/or reporting abuse
from shutil import copyfile
copyfile("/root/a.txt", "/root/b.txt")
For further actions, you may consider blocking this person and/or reporting abuse
Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.
Guillaume VINET -
Vicente G. Reyes -
Louis Sanna -
Wilbert Misingo -
Top comments (3)
or:
fa = open("root/a.txt", "r").read()
fb = open("root/b.txt", "w")
fb.write(fa)
Thanks for sharing
you're welcome!