On Tue, Dec 16, 2003 at 03:32:32PM +0530, Bhanu Prasad wrote: > Hi, > > I am woirking with REDHAT Linux 9.0 and i want to know the creation time of > file. > So please guide me that how can i know the creation time of a file. It doesn't matter which distribution of Linux or Unix you are using, the commands are mostly the same. To get information about a particular file use command stat. For example, I use it on file named contacted and the result starts with the string File: stat contacted File: "contacted" Size: 12674 Blocks: 32 IO Block: 4096 Regular File Device: 307h/775d Inode: 1163300 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/ raffi) Gid: ( 1000/ raffi) Access: Tue Dec 16 00:25:37 2003 Modify: Mon Dec 15 18:30:13 2003 Change: Mon Dec 15 18:30:13 2003 It tells me when the file was last accessed, modified, or changed in addition to it's attributes, size and ownership. If you want to keep the file creation date forever in case the file is modified later, then the best way is to include the date stamp in the file name. For example, you can name it myfile-20031216. I do that a lot with directory names as well as files. > > Reply ASAP > > Regards > Bhan > Enjoy, -- Rafael _______________________________________________ Blinux-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/blinux-list