Linux.com

Home Linux Community Community Blogs General Linux Using cat as a text editor

Using cat as a text editor

This is how you can use the cat command as a text editor:

$ cat > MyFile

write the text in the console, when done press CTRL+D

Now, if you'll open MyFile, you'll se that it contains the text you've entered. Be carefull as if the file you use is not empty, the content will be erased before adding what you're writting.

 

Comments

Subscribe to Comments Feed

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board