1752301 Members
4995 Online
108786 Solutions
New Discussion юеВ

See timestamps in linux

 
oiram
Regular Advisor

See timestamps in linux

Hello:

How can I see the mtime of a file in a linux system?

Regards,
Mario
3 REPLIES 3
Claudio Cilloni
Honored Contributor

Re: See timestamps in linux

the date printed by the 'ls -l' is the modification time. You can get the modification time with more precision using 'ls -l --full-time'.

hth,
Claudio
Steven E. Protter
Exalted Contributor

Re: See timestamps in linux

some linux systems have the ll alias

ll

which is the same as ls -l

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Huc_1
Honored Contributor

Re: See timestamps in linux

You can also use the command stat

like

# stat 'filename'
or
# stat *

I usualy use a perl script that uses perl stat()

J-P
Smile I will feel the difference