Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am reading in man lsof that

+L enables the listing of file link counts. A specification of
the form "+L1" will select open files that have been unlinked.

I don't understand why deleted files should have count 1.

Should not the count for deleted files be 0 ?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Well, yes. The manpage on my Debian system says “When +L is followed by a number, only files having a link count less than that number will be listed.”

share|improve this answer
    
you are correct. That's embarrassing, I have missed that in the manual. –  Martin Vegter Mar 26 at 18:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.