Did you know you can write files with
cat with the
> operator to pass the output to a file:
$> cat > foo.txt. Then you can type or paste the content. End with a newline and then hit CTRL+C to exit and your file will be there. Useful in sparse Docker containers.