LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2009, 05:19 PM   #1
jgardner123
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Utility (or command) to see what processes have a file open


Hi. I am searching for a utility (or a command) that I can run on a file that will tell what processes have the file open. I think my distro is RedHat 4.2, but I'm not even sure of that. I'm new to Unix/Linux. Thanks in advance!
JG
 
Old 12-11-2009, 05:36 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
lsof
 
1 members found this post helpful.
Old 12-11-2009, 05:40 PM   #3
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Rep: Reputation: 41
lsof | grep [filename]

Last edited by rabbit2345; 12-11-2009 at 05:41 PM.
 
Old 12-13-2009, 06:20 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Also,

uname -a

cat /etc/redhat-release

to get your kernel & OS versions
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line utility to split a zip file paragkalra Linux - Software 1 09-16-2008 10:09 AM
need a command line utility that will upload a file to a host Leb_CRX Linux - General 4 10-01-2007 12:35 PM
BASH command for open file phantom_cyph Linux - General 16 03-26-2007 10:26 PM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 12:24 AM
re: how do I open file from command line ergo_sum Linux - Newbie 7 10-29-2003 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration