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 creates an empty file if it doesn't exist. It also updates the access and modification timestamps of an existing file to the current time. It does not create directories or change file ownership - those use 'mkdir' and 'chown' respectively.