English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hi,

I wd like to know unix command with that we can see year of creation of any file. kindly help mr to know which command we hv in solaris for the same.

if we have to wrte shell script for the same then i need a code for the same.

2007-01-08 19:37:43 · 5 answers · asked by v_jauhari 1 in Computers & Internet Programming & Design

5 answers

Use the "ls -ltr" command.

-l option shows the modification time of a file.
-t option presents the files in the order of their modification
-r options sorts the above listing.

you can also use the "find" command...

2007-01-08 19:50:30 · answer #1 · answered by Anonymous · 0 2

One thing other answers might have missed is that you're asking for the year the files were created. I'm not aware of any contemporary *nix filesystems which store this information. Typically, all that is stored is the date the file was last modified, the date it was last accessed, and the date the file's inode(s) was/were last changed.

If you just want to see the date the file was last modified, try "ls --full-time". That works under GNU ls - not sure if Solaris uses GNU ls or not, but it's worth a try.

2007-01-08 20:04:31 · answer #2 · answered by clefmeister 2 · 0 0

Unix instructions purely artwork on Unix derived OS. This includes the loose bsd and Linux structures. except you run one among those you could no longer use them. in case you employ a Linux device, say you have the guy software which accesses handbook pages for all unix sort instructions. those are no longer purely used for servers, there is an exceedingly heavy swap to Linux workstations specifically for business corporation use as a results of that's stability.

2016-10-06 21:25:55 · answer #3 · answered by ? 4 · 0 0

Use the "ls -ltr" command.

2007-01-08 21:59:18 · answer #4 · answered by Sonu G 5 · 0 0

try this www. unix basic commands.com
&mandrakelinux

2007-01-08 19:52:39 · answer #5 · answered by gayu j 1 · 0 1

fedest.com, questions and answers