Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is the file locked ?

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
Hi,

I'd like to establish if the file is currently locked for read nad by which process.

Which command would I use ?

Thanks

"Long live king Moshiach !"
 
fuser 'filename'
will return the process with open inodes to file.
 

And Unix doesn't lock files. You can always read and write or even remove it.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top