Results 1 to 2 of 2

Thread: ls command

  1. #1
    Join Date
    Feb 2004
    Location
    chennai, india
    Posts
    3

    Unanswered: ls command

    hi all

    when we use the "l" command we get the list of all files & directories available. Files aged less than 6 months, when listed do not display the year. Now my requirement is, i need the time stamp should contain the year for file spooled as of date. Can u suggest me the command.

    replies appreciated.

    raguram R

    ex:
    -rw-r--r-- 1 rram group 1130 Jan 3 2003 a.c
    -rw-r--r-- 1 rram group 32 Feb 3 18:05 a.sh

    observe the time stamp.

  2. #2
    Join Date
    Jan 2004
    Location
    Bordeaux, France
    Posts
    320
    With GNU version of ls :
    Code:
    /home/jp> ls --full-time *shl
    -rw-r--r--    1 jp mkgroup       232 Sat Nov 17 10:06:54 2001 PipeStatus.shl
    -rw-r--r--    1 jp mkgroup       582 Wed Mar 27 21:04:26 2002 Restart.shl
    -rwxr-xr-x    1 jp mkgroup      1999 Mon Feb 09 21:48:28 2004 url.shl
    With tar :
    Code:
    /home/jp> tar cf - *shl | tar tvf -
    -rw-r--r-- jp/mkgroup 232 2001-11-17 10:06:54 PipeStatus.shl
    -rw-r--r-- jp/mkgroup 582 2002-03-27 21:04:26 Restart.shl
    -rwxr-xr-x jp/mkgroup 1999 2004-02-09 21:48:28 url.shl
    Jean-Pierre.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •