How do I create an echo file in Linux?

Lan Anh

New member
How do I create an echo file in Linux?
Answer
How to create a file in Linux from terminal window?
  • Create an empty text file named foo.txt: touch foo.bar. OR. > foo.bar.
  • Make a text file on Linux: cat > filename.txt.
  • Add data and press CTRL + D to save the filename.txt when using cat on Linux.
  • Run shell command: echo ‘This is a test’ > data.txt.
 

Tìm kiếm

Back
Top