You can change a file timestamp using the touch <file> command.
touch /hello.txt
will update the access and modification time of the hello.txt file. If the file does not already exists on the system, it will be created with an empty content.
In practice
Create an empty file called valid_file under the directory /foo/bar/valid_file
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.