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

Upcoming Linux Foundation Courses

  1. LFD320 Linux Kernel Internals and Debugging
    03 Nov » 07 Nov - Virtual
    Details
  2. LFS416 Linux Security
    03 Nov » 06 Nov - Virtual
    Details
  3. LFS426 Linux Performance Tuning
    10 Nov » 13 Nov - Virtual
    Details

View All Upcoming Courses


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