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.

0 thoughts on “Using CAT as a Text Editor”

Leave a Reply

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