Shopping Cart (0)

Using find and touch to update the date & time stamp on your files

Once you know how to use the command line you can easily update the modification date and time for a collection of files.

Once you know how to use the command line you can easily update the modification date and time for a collection of files.

If you are distributing a package of files it is often handy to update the files to have the same modification date & time. One way to do this is to use the UNIX find and touch commands from the terminal.

The following command will recursively update the file modification time:

To use the find and touch commands properly you need to navigate to your target directory. When you run the code, the find command will search through every file and folder located inside the current working directory, and the touch command will then update the modification date and time.

2 comments
  1. That’s hilarious Sybil! I hope for everyone’s sake you keep a mouse in your hand and stay away from the textual DOS interface.

Comments are closed.