Results 1 to 2 of 2

Thread: How to get the timestamp when it is created

  1. #1
    Geek_Guest
    Guest

    How to get the timestamp when it is created

    Question asked by visitor ashu

    ll or ls -l shows me only month:date:hh:mm.but, i want year:month:date:hh:mm:ss

    I want year and seconds display. if that is not possible from ls, then i'd like to know, how to get the timestamp when it is created.

    ex: I created a file at 2007:Apr:13:12:33:59 seconds. I want the command which shows me above mentioned details.


  2. #2
    Contributing Member
    Join Date
    Apr 2007
    Answers
    58

    Re: How to get the timestamp when it is created

    Try the following options with ls command to get full date & time listing..

    ls -l --time-style=full-iso
    or
    ls -l --time-style=long-iso

    Regards,
    Anoop :)
    If its useful, dont forget to [COLOR="Red"]THANK[/COLOR] me :cool:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact