touch

change file timestamps

copy
16
0
touch --date="2008-04-23 15:19:12.42342234 +0540" myfile.txt Changes the date and time of myfile.txt

details |

copy
8
0
touch -t 11261234 myfile.txtChanges the date and time of myfile.txt but leaves the year.

details |

copy
4
0
touch -am myfile.txtChanges the access time and modification time of myfile.txt to the current time/date

details |

copy
3
4
touch -c myfile.txtTo avoid creating a new file use -c

details |

copy
3
0
touch -r file1.txt myfile.txtChange myfile.txt to have the same date and time as file1.txt

details |

copy
3
0
touch myfile.txtCreates a file myfile.txt with the current time and date

details |

copy
3
0
touch myfile1.txt myfile2.txt myfile3.txtCreates 3 empty files called myfile1,2,3.txt

details |

copy
4
0
touch -c -t 02262414 myfile.txtTo explicitly set the modification and access times of myfile.txt

details |

copy
2
0
touch -m *.oTo update the modification times on all object files

details |

copy
2
0
find . -type f -exec touch {} \To touch all files in current and all subdirectories

details |