Spiga

Process management commands: Simple and easy to use

pstree -p The command is used to provide the details on the parent and child processes.

iostat Report the CPU Statistics and the details on the input/output statistics for partitions and devices.

uname -a provides the system information

cat /proc/version displays the kernel version

lsmod To get the details on the currently loaded modules on to the kernel; cat /proc/modules will also show up the same - result.

uptime will show the details of the system updtime.


IPC's : Semaphores, shared memory and queues

Linux uses the semaphores,shared memory and shared memory queues to communicate with each other or for inter process communication.

the common commands used for identifying this are:


ipcs -s lists the semaphores currently in use

ipcs -m shows the shared memory details for the server

ipcs -q shows the shared memory queue


ipcrm - the command used to remove the IPC parameters

ipcrm -s

psof : is used to identify the processes attached to a particular file or network ports

common usages are : lsof pid or file name

lsof - u user-id

netstat -punta

socklist


will provide the list of open network connections which can be further used to gain details on the active ports

lsof -i tcp:port-no

ulimit is another tool which should be helpful in creating user limits for number of processes and the memory access details for the

0 comments: