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 How to Create a File in the Linux Using the Terminal? In this article, we will learn to create a file in the Linux/Unix system using the terminal. In the Linux/Unix system, there are the following ways available to creating files. Using the touch commandUsing the cat commandUsing redirection operatorUsing the echo commandUsing the heredocUsing the dd c 4 min read Remove Last character from String in Linux In this article, we will discuss how to remove the last character from the string in Linux. In Linux, there are various commands and techniques present by which you can do this task in an easier way if you have some basic knowledge about the commands in Linux. Here, you will see the different comman 3 min read How to get file creation and modification date or time in Python? We often need to access various file properties for different purposes. Among the file properties, the creation and modification time of a file are the most commonly used ones. We can achieve the same functionality and use it for various utility purposes, using multiple methods. You can use function 4 min read How To View Old Version of a File With Git? Git is a powerful version control system that enables developers to track changes, collaborate on projects, and maintain a history of modifications over time. One of the key features of Git is the ability to view old versions of files, which can be crucial for debugging, auditing, or understanding t 3 min read How to Create an Empty File in Linux | Touch Command The touch command is a standard command used in the UNIX/Linux operating system which is used to create, change and modify the timestamps of a file. Basically, there are two different commands to create a file in the Linux system which are as follows: touch command: It is used to create a file witho 7 min read Like