Which option will be used with touch command to change the access time? A. -a B. -b C. -t D. -h E. None of the above

#NAME?
#NAME?
#NAME?
#NAME?

The correct answer is: C. -t

The touch command is used to create, modify, or change the access and modification times of a file. The -t option is used to specify the time to set the access and modification times to. The time can be specified in a variety of formats, including:

  • YYYY-MM-DD HH:MM:SS
  • YYYY-MM-DD
  • HH:MM:SS
  • MM-DD-YYYY
  • DD-MM-YYYY

For example, to set the access and modification times of the file foo.txt to 2023-02-25 12:34:56, you would use the following command:

touch -t 2023-02-25 12:34:56 foo.txt

The -a option is used to set the access time of a file. The -b option is used to set the modification time of a file. The -h option is used to print the help message for the touch command.

I hope this helps! Let me know if you have any other questions.