Editing a file using cat
If you have to modify a file because any editor is present (vi, vim, nano, etc). you can use cat
to do it:
$ cat > filename.ext
write or paste the content
ctrl+d
And that would be it! Super helpful when debugging flaky tests that only fail in the CI server