1829147 Members
2535 Online
109986 Solutions
New Discussion

HELP

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

HELP

When I issue the command 'fuser /home'
my output looks like:

# fuser /home
/home: 6974c 6936c

Can someone explain to me what this output is telling me? What is 6974c and 6936c? how can I trace this back to an app or user?

Thanks,
Bob
UNIX IS GOOD
6 REPLIES 6
John Palmer
Honored Contributor
Solution

Re: HELP

Hi,

In your case, 6974 and 6936 are process numbers which have the relevant file open.

From 'man fuser' the c indicates that /home is the process's current directory.

Regards,
John
Nobody's Hero
Valued Contributor

Re: HELP

Thanks John.
UNIX IS GOOD
Victor BERRIDGE
Honored Contributor

Re: HELP

Hi,
Try using fuser -cu /home, it will display the processID and the owner...

All the best

Victor
Darrell Allen
Honored Contributor

Re: HELP

Hi Bob,

From man fuser:

<>
The fuser command lists the process IDs of processes that have each specified file open. For block special devices, all processes using any file on that device are listed. The process ID can be followed by a letter, identifying how the file is being used.

c file is its current directory.

r file is its root directory, as set up by the chroot command (see chroot(1M)).

o It has file open.

m It has file memory mapped.

t file is its text file.

<>

From your post, 2 processes are "using" /home: 6974 and 6936. ps -ef | grep -e 6974 -e 6936 will show you what that are and who they are running as.

The "c" means the current directory for the processes is /home.

One more item. fuser returns the pids to stdout and the following character ("c" is this case) to stderr.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Helen French
Honored Contributor

Re: HELP

Hi Robert,

Take a look at this guide for more information about fuser command:

http://www.docs.hp.com/hpux/onlinedocs/B2355-90681/B2355-90681.html

HTH,
Shiju

Life is a promise, fulfill it!
harry d brown jr
Honored Contributor

Re: HELP

Robert,

Another great utility is "lsof", which is light years ahead of fuser:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.55/

And there are versions for sun:

http://www.sunfreeware.com/

For sun, On the right had side, sel3ect your OS and then a new list appears on the right below it.

live free or die
harry
Live Free or Die