You can update the timestamps of multiple files using the touch command by specifying the names of the files separated by spaces. Here’s the syntax:
touch file1.txt file2.txt file3.txt
This command will update the timestamps of file1.txt, file2.txt, and file3.txt. If any of these files do not exist, touch will create them as empty files.
You can also use wildcards to update timestamps for multiple files that match a pattern. For example:
touch *.txt
This command will update the timestamps of all .txt files in the current directory.
