6

Get the time one file was last written to

view full story
linux-howto

http://forums.fedoraforum.org – Hello everybody. I am working in a program to determine run times for several processes running in a server. The output file contains the start date and I just need to work out the 'last' date. For starters ls allows one to know a lot of things about a file, particularly the date it was last changed. Here is the output of ls -l statejmol.spt Code: axayacatl-lord:Desktop joe$ ls -l statejmol.spt -rw-r--r--  1 joe  staff  5766 Jan 20 12:26 statejmol.spt Here is the output I'd like to get: Code: axayacatl-lord:Desktop joe$ SOME COMMAND statejmol.spt Jan 20 12:26 How can I make ls to output only the modification date of a file? Or, is there another method available to accomplish what I need? Thanks, Joe. (HowTos)