![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help needed in fuser command | anju | Shell Programming and Scripting | 1 | 02-20-2008 02:08 AM |
| fuser ?? Look at the script !! | varungupta | UNIX for Advanced & Expert Users | 0 | 08-31-2007 06:27 AM |
| make fuser send SIGTERM? | adamides | HP-UX | 4 | 03-08-2007 10:57 AM |
| fuser brought down the box | bandaru | AIX | 5 | 08-03-2005 08:39 AM |
| Help with fuser | vibhor_agarwali | UNIX for Dummies Questions & Answers | 11 | 04-18-2005 02:13 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
fuser
Anyone ever use fuser,
i tried this command fuser /database.bk but it only returns datbase.bk: I read some of the forums online, one of them said when he used fuser, it broke down the box, i really don't want that happen. I thought fuser is to see who is accessing that file, right? any help is greatly appreciated. i have been searching online, and there is not that much help on fuser. thanks. |
|
||||
|
The command fuser is used to list processes using a file. If nothing is return, then the file is not use by anyone at that time. If the file is used, you will get the PID of users using the file:
Code:
unixbox:/ # fuser YOURFILE YOURFILE: 8316o 5452o 2351o 5426o 1393o 26348o 24673o 8886o 28688o 16107o 18838o 11514o 29396o 3810o 15796o |
|
||||
|
Strange question, but.. how do you actually OPEN a file to test this behaivour ? I ask this because I tried with vi thefile but fuser shows another process different than the session where I actually executed vi thefile. Which leads me to think that probably vi open up a new version of the file to edit it.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|