LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 06: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, 06:36 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,127
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
lsof
 
1 members found this post helpful.
Old 12-11-2009, 06: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 06:41 PM.
 
Old 12-13-2009, 07:20 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
Also,

uname -a

cat /etc/redhat-release

to get your kernel & OS versions
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:09 AM
need a command line utility that will upload a file to a host Leb_CRX Linux - General 4 10-01-2007 01:35 PM
BASH command for open file phantom_cyph Linux - General 16 03-26-2007 11:26 PM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 01:24 AM
re: how do I open file from command line ergo_sum Linux - Newbie 7 10-29-2003 12:35 PM

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

All times are GMT -5. The time now is 03:31 PM.

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