What does the 2nd number after the process id represent ? [ss command]


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What does the 2nd number after the process id represent ? [ss command]
# 1  
Old 01-15-2015
What does the 2nd number after the process id represent ? [ss command]

For instance, when I run ss -lptn | grep sshd , the output is as follows:

Code:
LISTEN      0      128     *:22     *:*      users:(("sshd",1252,3))

1252 refers to the process id, but what does the 3 refer to ?

Last edited by rbatte1; 01-15-2015 at 09:33 AM.. Reason: Added ICODE tag
# 2  
Old 01-15-2015
I think it's a file descriptor/handle, not sure do...
Code:
ls -l /proc/1252/fd/3

This User Gave Thanks to blackrageous For This Post:
# 3  
Old 01-15-2015
Oh yeah you are right, thanks a million Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies

2. Solaris

To get process id for port number

Hi All, How to get the list of port numbers and it is correspoding proceses id that are currently running on. Please suggest and it is urgent Thanks. (7 Replies)
Discussion started by: rbalaj16
7 Replies

3. UNIX for Dummies Questions & Answers

Limit process number in TOP command outupt

Linux top command prints more than 40 processes. top -b -n 1 > Top_Output.txt Is there a straight-forward option/way to limit only till the top 5 processes. ( Instead of using head, tail or other unix commands together) (1 Reply)
Discussion started by: vikram3.r
1 Replies

4. Shell Programming and Scripting

Need to represent a number in 99999999 format(8 digits)

Hi all, i have to create a file having an 8-digit sequence number, that will start by name file_00000001.cvs at first time, the next day the file will be named file_00000002.cvs and so on. How can i do this in my script please, specially that i will need a counter that increments this number... (10 Replies)
Discussion started by: Eman_in_forum
10 Replies

5. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

6. UNIX for Dummies Questions & Answers

What does $ represent in command prompt?

What does $ represent in command prompt? (2 Replies)
Discussion started by: ashok.g
2 Replies

7. Solaris

Number of process per user session

Hi All, Do we have any option through which we can limit the number of process which can be started by single user session. Thanks (3 Replies)
Discussion started by: kumarmani
3 Replies

8. Shell Programming and Scripting

grep the number of self process

Dear All, I plan to write a script and in the beginning, I will check if there's any existing previous process running, if YEs, then exit directly, if Not, then continue. #!/bin/bash NUM=`ps -ef | grep $0 | grep -v grep | wc -l` ps -ef | grep $0 | grep -v grep echo "NUM ==> $NUM" if... (6 Replies)
Discussion started by: tiger2000
6 Replies

9. UNIX for Advanced & Expert Users

number of process

Hi, under AIX 5.2 which (environment) parameter defins the number of processes for the server ? Many thanks. (2 Replies)
Discussion started by: big123456
2 Replies

10. Shell Programming and Scripting

number of process?

how i know number of process are currently run on my user area (2 Replies)
Discussion started by: piyush_movadiya
2 Replies
Login or Register to Ask a Question