Which command creates an empty file if it does not exist?

Which command creates an empty file if it does not exist?
Answer
On Linux, the touch command is most commonly used to create empty files. The command is meant for changing file timestamps, but it creates an empty file if you give it a name of a non-existent file.
 

Tìm kiếm

Back
Top