ls -l will give the modified time of file, but it is giving the time when the file was opened, not closed (using Ctrl+D or something)
Please tell me how to find the time of file closed
[BASH]$date Wed May 7 10:33:01 EEST 2014 [BASH]$cat >aa adf adsf #waited 8 mins before closing file (time of closing: 10:41) [BASH]$ls -l aa -rw------- 1 orclschd staff 9 May 7 10:33 aa [BASH]$date Wed May 7 10:41:47 EEST 2014 [BASH]$stat aa bash: stat: command not found [BASH]$uname AIX
Here I have created a file named
The file was created at 10:33 but when I closed the file and I checked the file's modified date it still showed 10:33.
But the file creation end date (closed time) is 10:41 .
Is there is any command in AIX to find when the file is closed or can we write any bash script to track the file automatically?