Using CAT as a Text Editor
When there’s only the CAT command this is how you use it as a text editor:
$cat > Filename
Then, in the console, write the text. When you’re done press CTRL+D
Opening the file, you’ll find its contents is your entered text. Careful you don’t overwrite an existing file.