Re: [SLE] preserving files' creation time



I'm not sure if I can provide the answer directly, but a Linux (and Unix)
file contains 3 different time values:
1. ctime: The time the file's inode was last modified. This can happen if
you make a change that affects the size of the file. Note that if you
create an additional hard link to a file, ctime will change. In the case of
the ln command, ctime and atime will change but not mtime.
2. mtime: The time the file's contents were last modified. See my comment
above.
3. atime: The time the file was last accessed (such as read).

Note that in Linux and Unix, a file is an entry in the Inode table that
contains information about a file. The file directories simply contain file
names that point to the inode. This is one feature that makes Unix and
Linux different from most other operating systems. You can (and do) have
files that have different names. For instance, every directory has at last
2 names:
1. The actual name of the directory, such as /usr
2. Dot (.). This is a hard link to the current directory.
3. DotDot (..). This is a hard link to a parent directory.
For instance:
/usr contains a number of subdirectories, each having a (..) pointing (as a
hard link) to the /usr directory. On my system, /usr has 13 hard links (or
13 different names such as /usr, ., /usr/bin/.., etc.

(also note that hard links cannot span file systems, but symbolic links can
since a symbolic link is a file containing a name of the file it refers
to).

It is also possible for a file to exist without a name. This can occur in
the case where you delete a file that is in use. Since the rm(1) command
does not physically delete a file, the open file remains until the program
that has it opened closes it. This occurs often if you try to regain space
by deleting a large log file, but the daemon using it is still running.
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • Re: The Problems With Linux
    ... > Here are the problems with Linux: ... programmers of UNIX, Open Source software, and Shareware. ... programs only available from BSD. ... BSD code is used by Microsoft in it's Windows NT/9x/2K/XP code. ...
    (comp.os.linux)
  • RE: [Full-Disclosure] CyberInsecurity: The cost of Monopoly
    ... I've used UNIX, ... I've used/use Linux, ... > inefficient operating system - if most other Windows ... This is why I don't run POS operating systems. ...
    (Full-Disclosure)
  • Re: hmm..
    ... I checked definitely do not have any UNIX history to them. ... (ie I think "real UNIX" has SIGBUS at 10, while Linux didn't originally ... the "ctype" name comes "character type", and the ... the "ctype" interfaces are defined by the C standard library. ...
    (Linux-Kernel)
  • Re: Newbie Experience
    ... I've only been around since FreeBSD 5.4 ... FreeBSD kernel too. ... always sunshine and linux is farts. ... in the hey day of AT&T Unix I'm ...
    (freebsd-questions)
  • Re: Mac o Linux??
    ... Linux discutibile, ma quella si puo` sempre cambiare), Sempron ... di Unix, io preferisco MacOSX, ma non e` che per l'uso Unix verace Linux ... laptop, ma Linux al lavoro sul desktop, e comunque i server di Google ...
    (it.comp.macintosh)

Loading