How do you create a file in Unix?

Nguyễn Tân

New member
How do you create a file in Unix?
Answer
There are multiple ways to create a file in unix.
  1. touch command: It will create an empty file in directory specified.
  2. vi command (or nano): You can use any editor to create a file.
  3. cat command: Although cat is used to view file, but you can use this to create file as well from terminal.
 

Tìm kiếm

Back
Top