we can create a file by a lot of commands:cat > foo.txtecho 'This is a test' > foo.txttouch foo.txtvi foo.txt (or any text-editor)my questions are: What is the original command to create a file when they first created Linux (Unix)?Is there any differences if I used any of the command above to create a new file?
what is the original command to create a file?
files;history
Usually Linux does not log which processes access a file (because of the cost in performance and storage). If such logging is active then you could look up what caused the first access.There is no difference in the resulting file if different programs put the same content into it. Different processes may have different UIDs and different primary groups resulting in different file ownership.