TechToFreedom
Published in

TechToFreedom

mtime, ctime and atime in Linux: What’s the Difference

Use a correct one for a certain scenario

A pink house on a snowy ground
Photo by WallpaperManiac on Wallhaven

Many Linux operations are based on timestamps of files. For example, when you need to delete some old log files of a Linux server, you must pick the files based on correct timestamps to avoid deleting something unexpectedly. To be honest, I really deleted files mistakenly because of checking them by…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yang Zhou

Yang Zhou

Senior Full-Stack Engineer | Top Writer | Join me in Medium: https://yangzhou1993.medium.com/membership