how to change date of file in linux

/*how to change date of file in linux*/
touch -a -m -t 201512180130.09 fileName.ext

-a = accessed
-m = modified
-t = timestamp - use [[CC]YY]MMDDhhmm[.ss] time format

4.29
7
JonSG 70 points

                                    $ NOW=$(date) && date -s "2030-08-15 21:30:11" && touch file.txt && date -s "$NOW"

4.29 (7 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
linux change modified date time of file linux change modified datetime of file linux command to get updated date of file linux check file change date linux file creation and modification date how to change change time of file in linux how to change time of file changes in linux how to find file creation date in linux how to change date and time of a file in shell how to change date of a file in shell change time update file linux how to move file by date in linux linux change date file how to change creation date of a file linux modify file date linux how to modify file modified date linux linux change date of file creation linux update date modified of file change date attribut in linux file what does it mean change date in linux file change date of file in shell how to change date of edit file in linux can we modify files modified date linux linux rename file add date change the modified date of a file in linux change creation date of file linux how to change the date of a text file in linux linux set modified date of file linux get file change date time change file last modified date linux linux change file last modified date linux change file modified date change date of file in linux how to change date of file in linux how to change the modified date of a file in linux change file date linux linux change file date how to change date modified of a file in linux change date file linux modify creation date of file linux linux change file modified time linux change date on file change date of modified file linux update timestamp linux touch change the date to
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source