How do you create a text file in Terminal?

How do you create a text file in Terminal?
Answer
Part 2 Creating a Quick Text File
  • Type cat > filename.txt into Terminal. You’ll replace “filename” with your preferred text file name (e.g., “sample”).
  • Press ↵ Enter .
  • Enter your document’s text.
  • Press Ctrl + Z .
  • Type ls -l filename.txt into Terminal.
  • Press ↵ Enter .
 

Tìm kiếm

Back
Top