What are .nfs* files?

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: == Links == * [https://www.cse.unsw.edu.au/faq/questions/help-nfs.html Deleting .nfs files] * [http://groups.google.com/group/comp.lang.java.programmer/msg/4a99736f07260375 Why a dot file...)
Line 1: Line 1:
 +
When a process has a file open on an NFS share, and the file is removed by another process, an ''.nfs''* file is created. When the original process closes the file, the ''.nfs''* file is removed.
 +
 +
Example:
 +
(system1) $ '''echo testdata > /NFS_volume/shiznit'''
 +
(system1) $ '''tail -f /NFS_volume/shiznit'''
 +
 +
(system2) $ '''rm /NFS_volume/shiznit'''
 +
(system2) $ '''ls -a .nfs*'''
 +
.nfs00222d9e00000001
 +
(system2) $ '''cat .nfs00222d9e00000001'''
 +
testdata
 +
 +
(system1) $ ''Ctrl-C''
 +
(system1) $ ls -a
 +
== Links ==
== Links ==
* [https://www.cse.unsw.edu.au/faq/questions/help-nfs.html Deleting .nfs files]
* [https://www.cse.unsw.edu.au/faq/questions/help-nfs.html Deleting .nfs files]
* [http://groups.google.com/group/comp.lang.java.programmer/msg/4a99736f07260375 Why a dot file cannot be deleted after running a Java program?]
* [http://groups.google.com/group/comp.lang.java.programmer/msg/4a99736f07260375 Why a dot file cannot be deleted after running a Java program?]

Revision as of 21:09, 26 March 2008

When a process has a file open on an NFS share, and the file is removed by another process, an .nfs* file is created. When the original process closes the file, the .nfs* file is removed.

Example:

(system1) $ echo testdata > /NFS_volume/shiznit
(system1) $ tail -f /NFS_volume/shiznit

(system2) $ rm /NFS_volume/shiznit
(system2) $ ls -a .nfs*
.nfs00222d9e00000001
(system2) $ cat .nfs00222d9e00000001
testdata

(system1) $ Ctrl-C
(system1) $ ls -a

Links

Personal tools