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.
Unix command?
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...
Reply:Use the "ls -ltr" command.
Reply:try this www. unix basic commands.com
%26amp;mandrakelinux
Reply: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.
flower shops
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment