fuser -how to ?

  • delta32
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jan 30, 2006
  • Posts: 11
  • Status: Offline

Post May 25th, 2006, 4:59 am

in Linux, does fuser show whether a file is opened for editing or so.

what are the circumstances under which fuser can be used ?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 25th, 2006, 4:59 am

  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post May 26th, 2006, 1:34 pm

http://linux.about.com/library/cmd/blcmdl1_fuser.htm

it looks like the command will show if the file is open, but wont denote between if its being read or written to (i.e. if an html file is being accessed or written). but that kind of depends on what type of files you're wondering about. usually if a text file is open, it can be written to unless the appropriate permissions or attributes are set.
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • delta32
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jan 30, 2006
  • Posts: 11
  • Status: Offline

Post May 29th, 2006, 1:34 pm

if i 've a file opened the file X editing, and if i use fuser from a seperate terminal
$fuser X
$fuser -u X , etc dosen't give any information regarding whether the
file is opened or not, not even the PID is given

In solaris , fuser -u used to give the PID atleast.

is this not what fuser for, but why does it behave strangely in Linux ?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 51 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.