Multiple choice technology operating systems

Use of touch command

  1. Create a directory

  2. Create an empty file

  3. Modify the timestamp of a file

  4. Change the owner of a file

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

The 'touch' command in Unix/Linux has two main uses: creating an empty file (if it doesn't exist) and updating the timestamp of an existing file (to the current time). Both options B and C are correct. 'touch' does not create directories (use 'mkdir') or change file ownership (use 'chown').