Help on touch command

Hi all
I changed some of my files in my hoem directory to old dates using the touch command like this
touch -t 200805101024 file name

but after using this command the date changed properly but it displays like below
-rwxr--r-- 1 fincntrg fingrp 193619 May 10 2008 vi.pdf

I need the date format like below
-rwxrwxrwx 1 fincntrg fingrp 28 Apr 17 17:31 thelak

It eats the time eventhogh i given the time too in at the time of execution
200805101024

Please help on this.

Waiting for the earliest response

No, it doesn't "eat" the time. ls will only display the date, without the time, for all files older than 6 months. If available, you could use the stat command to show the full date and time, or on Linux hosts ls --full-time

1 Like

GR8 master

Thanks alot for your kind sharing

---------- Post updated at 03:42 PM ---------- Previous update was at 03:29 PM ----------

but i tried in one another set up in that the stuff even for 5 days before its not working

please look the below

[QFNC]/finusers/finadm/SELVA/STATIC> touch thelak
-rw-r--r--   1 finadm   findba            0 Nov 12 12:50 thelak
[QFNC]/finusers/finadm/SELVA/STATIC> touch -t 201010051000 thelak
-rw-r--r--   1 finadm   findba            0 Oct 05 2010  thelak

whether the permission plays vital role any suggestions masters

Hmm, is the clock wrong on your server?
What is the output from:

date

More thoughts.
I don't know of a mainstream "ls" which outputs leading zeros on a day number "Oct 05 2010".
What Operating System and version are you running?
What did you type to display the sample directory listings?