10 More Discussions You Might Find Interesting
1. Solaris
Hi all,
q1) If i am in a global-zone, is there any command or anyway to check if a particular process in "ps -ef" output is running in which zone ?
q2) if i have created and mount a lofs filesystem/mountpoint for my non-global zone, can i say the following
e.g.
/dev/md/dsk/d60 /data --... (1 Reply)
Discussion started by: javanoob
1 Replies
2. UNIX for Dummies Questions & Answers
Platform: Oracle Linux 6.4
To find the most memory consuming processes, I tried the following 2 methods
1. Method1
# ps aux | head -1 ; ps aux | sort -nk +4 | tail -7
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 95 0.0 0.0 0 0 ? ... (2 Replies)
Discussion started by: kraljic
2 Replies
3. Shell Programming and Scripting
The end result that I'd like is to terminate any process on my ps -u username list that extends beyond 20 minutes. I know for a fact that this process will be named l.exe, but I don't know the number in between and I won't know the PID. Is there a way to use grep or pidof to do this task every 20... (2 Replies)
Discussion started by: Bolanok
2 Replies
4. Shell Programming and Scripting
When I run 'top' command,I see the following
Memory: 32G real, 12G free, 96G swap free
Though it shows as 12G free,I am not able to account for processes that consume the rest 20G.
In my understanding some process should be consuming atleast 15-16 G but I am not able to find them.
Is... (1 Reply)
Discussion started by: prasperl
1 Replies
5. UNIX for Advanced & Expert Users
Is there some way to tell what processes are attached to a shared memory segment? We have a system on which I perform "icps -ma" and there are several segments pending deletion having numerous processes attached to them and I can't tell what processes they are. Neither the creator's pid nor last... (7 Replies)
Discussion started by: DreamWarrior
7 Replies
6. Shell Programming and Scripting
I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time.
Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies
7. Solaris
Hi Experts,
I was asked to find most busy file system on one of the server. It is Sun 10. Any idea to get this?
Thanks,
Deepak (5 Replies)
Discussion started by: naw_deepak
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
when I run sfdisk -l get:
Disk /dev/sda: 19452 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 12 13- 104391 83 Linux... (1 Reply)
Discussion started by: mojoman
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have here a hard drive from a computer that was damaged, and now the costumer needs the data on the hard drive, but doesn't have any other computer to read data.
I don't really know what file system is on the disk.
How can I find out what file system is on the disk so I can read the... (4 Replies)
Discussion started by: dmarques
4 Replies
10. Shell Programming and Scripting
Hello ,
I want to get current system open file table value. Can any one help.
Thanking you,
mahesh (0 Replies)
Discussion started by: mahesh.
0 Replies
Commands Reference, Volume 2, d - h
fuser_Command
Purpose
Identifies processes using a file or file structure.
Syntax
fuser [ -c | -d | -f ] [ -k | -K { SignalNumber |
SignalName }] [ -u ] [ -x ] [ -V ]File ...
Description
The fuser command lists the process numbers of local processes
that use
the local or remote files specified by the File parameter. For
block
special devices, the command lists the processes that use any
file on that
device.
Each process number is followed by a letter indicating how the
process
uses the file:
c Uses the file as the current directory.
e Uses the file as a program's executable object.
r Uses the file as the root directory.
s Uses the file as a shared library (or other loadable
object).
The process numbers are written to standard output in a line
with spaces
between process numbers. A new line character is written to
standard error
after the last output for each file operand. All other output
is written
to standard error.
The fuser command will not detect processes that have mmap re-
gions where
that associated file descriptor has since been closed.
Flags
-c Reports on any open files in the file system
containing
File.
Implies the use of the -c and -x flags. Re-
ports on any
open files which have been unlinked from the
file system
-d (deleted from the parent directory). When
used in
conjunction with the -V flag, it also re-
ports the inode
number and size of the deleted file.
-f Reports on open instances of File only.
Sends the specified signal to each local
process. Only
-K SignalNumber | the root user can kill a process of another
user. Signal
SignalName can be specified as either a signal name,
such as -9 or
KILL for the SIGKILL signal. Valid values
for SignalName
are those which are displayed by the kill -l
command.
Sends the SIGKILL signal to each local
process. Only the
root user can kill a process of another us-
er.
-k Note:
fuser -k or -K might not be able to detect
and kill new
processes that are created immediately after
the program
starts to run.
-u Provides the login name for local processes
in
parentheses after the process number.
-V Provides verbose output.
Used in conjunction with -c or -f, reports
on executable
-x and loadable objects in addition to the
standard fuser
output.
Examples
1. To list the process numbers of local processes using the
/etc/passwd
file, enter:
fuser /etc/passwd
2. To list the process numbers and user login names of pro-
cesses using
the /etc/filesystems file, enter:
fuser -u /etc/filesystems
3. To terminate all of the processes using a given file sys-
tem, enter:
fuser -k -x -u -c /dev/hd1
or
fuser -kxuc /home
Either command lists the process number and user name, and
then
terminates each process that is using the /dev/hd1 (/home)
file
system. Only the root user can terminate processes that
belong to
another user. You might want to use this command if you
are trying to
unmount the /dev/hd1 file system and a process that is ac-
cessing the
/dev/hd1 file system prevents this.
4. To list all processes that are using a file which has been
deleted
from a given file system, enter:
fuser -d /usr
Files
/dev/kmem Used for the system image.
/dev/mem Also used for the system image.
Related Information
The kill command, killall command, mount command, and ps
command.
For more information about the identification and authentica-
tion of users,
discretionary access control, the trusted computing base, and
auditing,
refer to Security.
________________________________________________________________________________
Commands Reference, Volume 2, d - h
fuser_Command
Purpose
Identifies processes using a file or file structure.
Syntax
fuser [ -c | -d | -f ] [ -k | -K { SignalNumber |
SignalName }] [ -u ] [ -x ] [ -V ]File ...
Description
The fuser command lists the process numbers of local processes
that use
the local or remote files specified by the File parameter. For
block
special devices, the command lists the processes that use any
file on that
device.
Each process number is followed by a letter indicating how the
process
uses the file:
c Uses the file as the current directory.
e Uses the file as a program's executable object.
r Uses the file as the root directory.
s Uses the file as a shared library (or other loadable
object).
The process numbers are written to standard output in a line
with spaces
between process numbers. A new line character is written to
standard error
after the last output for each file operand. All other output
is written
to standard error.
The fuser command will not detect processes that have mmap re-
gions where
that associated file descriptor has since been closed.
Flags
-c Reports on any open files in the file system
containing
File.
Implies the use of the -c and -x flags. Re-
ports on any
open files which have been unlinked from the
file system
-d (deleted from the parent directory). When
used in
conjunction with the -V flag, it also re-
ports the inode
number and size of the deleted file.
-f Reports on open instances of File only.
Sends the specified signal to each local
process. Only
-K SignalNumber | the root user can kill a process of another
user. Signal
SignalName can be specified as either a signal name,
such as -9 or
KILL for the SIGKILL signal. Valid values
for SignalName
are those which are displayed by the kill -l
command.
Sends the SIGKILL signal to each local
process. Only the
root user can kill a process of another us-
er.
-k Note:
fuser -k or -K might not be able to detect
and kill new
processes that are created immediately after
the program
starts to run.
-u Provides the login name for local processes
in
parentheses after the process number.
-V Provides verbose output.
Used in conjunction with -c or -f, reports
on executable
-x and loadable objects in addition to the
standard fuser
output.
Examples
1. To list the process numbers of local processes using the
/etc/passwd
file, enter:
fuser /etc/passwd
2. To list the process numbers and user login names of pro-
cesses using
the /etc/filesystems file, enter:
fuser -u /etc/filesystems
3. To terminate all of the processes using a given file sys-
tem, enter:
fuser -k -x -u -c /dev/hd1
or
fuser -kxuc /home
Either command lists the process number and user name, and
then
terminates each process that is using the /dev/hd1 (/home)
file
system. Only the root user can terminate processes that
belong to
another user. You might want to use this command if you
are trying to
unmount the /dev/hd1 file system and a process that is ac-
cessing the
/dev/hd1 file system prevents this.
4. To list all processes that are using a file which has been
deleted
from a given file system, enter:
fuser -d /usr
Files
/dev/kmem Used for the system image.
/dev/mem Also used for the system image.
Related Information
The kill command, killall command, mount command, and ps
command.
For more information about the identification and authentica-
tion of users,
discretionary access control, the trusted computing base, and
auditing,
refer to Security.