Multiple choice technology operating systems

Touch command will?

  1. Create zero byte file

  2. Creates an log file

  3. Create blank directory

  4. Create blank file

Reveal answer Fill a bubble to check yourself
A,D Correct answer
Explanation

The touch command in Unix creates a new empty file if it doesn't exist, or updates the timestamp if it does. Both A and D describe the same correct behavior - creating a zero-length file. Option B is incorrect because touch doesn't specifically create log files, and option C is wrong because touch creates files, not directories.