Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-30-2004, 10:10 AM   #1
LQ Newbie
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
Is a file in writting


I need to know if some user is writing a file.
Is there any command to know this.


Old 07-30-2004, 10:43 AM   #2
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
One possibility would be with the lsof command. It lists open files. Be warned, you will get lots of output. Piping it into grep or to a text file would be advisable

EDIT: lsof is a system command. So you'll likely need to be root to execute it...

Last edited by Dark_Helmet; 07-30-2004 at 10:45 AM.
Old 07-30-2004, 09:39 PM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
The ps command lists all running processes, by user, including the path to applications and files they may be using. Examples of commands: ps aux, ps --User <username>. See the man pages for more info on how to use ps.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Writting an OS in C++ makko Programming 2 08-27-2005 07:27 AM
writting to file in php blitzX Programming 2 01-16-2005 02:57 PM
Is a file in writting ? stephnane AIX 3 08-02-2004 11:17 PM
My thread hangs while writting into a file skdevnath Programming 2 03-11-2004 05:13 PM
??.img file without writting itto CD pudhiyavan Linux - General 4 12-04-2003 07:10 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:38 AM.

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