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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.