How to Get Last Modified Date of File in Linux? Last Updated : 28 Mar, 2021 Comments Improve Suggest changes Like Article Like Report Here we are going to see how to get the last modified date of the file in Linux, sometimes we may require timestamps of the file and apart from this it also ensures that we have the latest version of that file. It can be done in four ways: Using Stat command.Using date command.Using ls -l command.Using httpie Example 1: Using Stat command. Apart from this if you only want to see the modified date then use the below command $ stat -c ‘%y’ filename -c displays the date and %y displays the modification time. Example 2: Using date command. You can use the below command to display the last modification date of the file $ date -r filename Example 3: Using ls -l command: The below command is used. $ ls -lt filename Example 4: Using httpie: You can check the last modified date of the file which is residing on the webserver and the command is also used for interacting with HTTP servers and APIs. Below syntax is used to check the last modified date of the file which is on the webserver. $ http -h [url] | grep 'Last-Modified' Comment More infoAdvertise with us Next Article How to Get Last Modified Date of File in Linux? P priyanshugupta627 Follow Improve Article Tags : Linux-Unix How To Similar Reads How to Find Files Modified in Last N Number of Days in Linux? Sometimes, we want to find the files which we created or modified in the last N number of days. Sorting the files on the basis of date helps in this case, but that's the traditional way of doing the task and is not efficient. This article is all about searching such files using the find command. Met 3 min read How to Find Recently Modified Files in Linux? Here we are going to see how to find recent or todayâs modified files in Linux. Locating files with a particular name is one of the problems Linux user's faces, it would be easier when you actually know the filename. let's assume that you have created a file in your home folder and you have forgotte 2 min read How to Create File in Linux Today, we're going to learn about something really important â how to create files in Linux. It's like creating a fresh piece of digital paper to write or store things. We'll explore different ways to do this using simple commands. Whether you're just starting out or have been using Linux for a bit, 7 min read How to Find and Remove Files Modified or accessed N days ago in Linux Searching for the files which were modified (or accessed) some days ago is a common operation that is performed by Archival or Backup applications. This process is a trivial one for an Operating System that stores all the Metadata about the files in a File Table. Therefore, there exist commands offe 3 min read How to Get Information About a File using Node.js ? Node.js is an open-source and cross-platform runtime environment built on Chromeâs V8 JavaScript engine for executing JavaScript code outside of a browser. You need to recollect that NodeJS isnât a framework, and itâs not a programming language. In this article, we will discuss how to get informatio 3 min read Like