fuser - identify processes using files or sockets

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

fuser - identify processes using files or sockets

Post by cah »

Using the following command to check which user(s) are using the file systems.

Code: Select all

# fuser -c <file system>
# fuser -u <file system>
E.g.

Code: Select all

# fuser -c /user/hsiaoc1
/user/hsiaoc1:       30111c
# fuser -u /user/hsiaoc1
/user/hsiaoc1:       30111c(hsiaoc1)
The process(es):

Code: Select all

# ps -ef | grep 30111
hsiaoc1  30111 30109  0 12:28 pts/0    00:00:00 -ksh
Once the process(es) is(are) determined, admin can then kill the process(es) and will be able to un-mount the file system(s).
CAH, The Great
Post Reply