fuser -how to ?

  • delta32
  • Newbie
  • Newbie
  • delta32
  • Posts: 11

Post 3+ Months Ago

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

what are the circumstances under which fuser can be used ?
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

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.
  • delta32
  • Newbie
  • Newbie
  • delta32
  • Posts: 11

Post 3+ Months Ago

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 27 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.