How do you create a text file in Unix?

How do you create a text file in Unix?
Answer
Open the Terminal and then type the following command to create a file called demo.txt, enter:
  1. echo ‘The only winning move is not to play.’ > …
  2. printf ‘The only winning move is not to play.n’ > demo.txt.
  3. printf ‘The only winning move is not to play.n Source: WarGames movien’ > demo-1.txt.
  4. cat > quotes.txt.
  5. cat quotes.txt.
6 окт. 2013 г.
 

Tìm kiếm

Back
Top