96.5k views
1 vote
What UNIX command is used to update the modification time of a file?

1) time
2) modify
3) cat
4) None of the above

User BoltClock
by
7.9k points

1 Answer

3 votes

Final answer:

The UNIX command used to update the modification time of a file is the touch command.

Step-by-step explanation:

The UNIX command used to update the modification time of a file is the touch command.

The touch command is used to create a new file or update the timestamps of an existing file. When used without any options, the touch command updates the modification time of a file to the current time.

For example, to update the modification time of a file named file.txt, you would run the command touch file.txt.

User Bollwyvl
by
8.5k points