What does Linux touch -c option do?

You can use touch -c option to not create any new file if it does not already exist. By default, touch will create the file if not already exists.

Example:

Create an empty file

List all available files and directories

touch -c option

List all available files and directories

Leave a Reply