Questions tagged [lsof]

Lsof is a tool to list opened files by processes

Lsof is a tool to list on its standard output file information about files opened by processes.

104 questions
0
votes
3 answers

How to install LSOF in AIX

I wanna install LSOF in AIX. I've download the program from https://www14.software.ibm.com/webapp/iwm/web/reg/pick.do?source=aixbp&lang=en_US. after I unzip the tar file, I don't get readme or installation guide file. This is the first time I use…
adi sembiring
  • 113
  • 1
  • 1
  • 4
0
votes
1 answer

Finding Network Status of specific process name

I am looking for the cleanest way on linux to find the port status for a port being used by a specified program name via the command line. I have seen that netstat -p lists all pids but haven't seen anything corresponding to specific process names.…
Moev4
  • 103
  • 2
0
votes
4 answers

Log file is missing, how can I see that and what happened to it

A process identified by process id 2147 is running, but its logfile is nowhere to be found. The filesystem is ext3 and 100MB of space remains. nothing went wrong in process 2147. An lsof of process 2147 reveals that the log file is still open. a.…
user37375
0
votes
0 answers

fuser not listing the process even netstat and lsof list

hostserver:~# lsof | grep *:6343 sflowtool 979324 root 3u IPv6 1443815323 0t0 UDP *:6343 hostserver:~# netstat -ntlup | grep 6343 udp6 0 0 :::6343 :::* …
0
votes
1 answer

How to track file lifetime using lsof?

I have read article https://tailscale.com/blog/case-of-spiky-file-descriptors/ where author investigates anomalies with the amount of open file descriptors. He said that made snapshot of open files using lsof which allowed him to track lifetime of…
0
votes
1 answer

Debian 11, multiple Solr versions running on different ports, lsof says that Solr9 is accessible only from localhost.localdomain

I have a Debian 9 server that is running Solr 7.3. I have upgraded to Debian 11, Solr is still fine. Now I'm trying to install Solr 9 alongside Solr 7.3, to have both versions running in the same time. I followed the official guide. bash…
nulll
  • 505
  • 1
  • 5
  • 9
0
votes
0 answers

Centos 7.4, dev/vda1 is 100%

My VPS on DO now has an issue of dev/vda1 is 100% since around 3 months ago, at that time, I did poweroff & reboot then disk spaced freed. But the thing rans into some bigger issue since 1 week ago, poweroff & reboot could not release free space any…
Phong Thai
  • 21
  • 1
  • 5
0
votes
1 answer

Find what is using disk space in CentOS 7 (du vs df vs lsof)

I have a server, CentOS 7, that show disk usage on DF way higher than you can see on DU and I trying to understand why DF shows 38GB used DU shows 14GB There is no mount point on any folder Checking LSOF for deleted files, there are couple, but…
kordhaldrum
  • 23
  • 1
  • 6
0
votes
0 answers

netstat shows a listening port with no pid and can't find pid with rpcinfo and ss and lsof

I tried bind nc on port 41120, but it said port has already been used. So I want to find out which process binded this port and if I can kill it. I executed netstat  -taupen| grep  41120 and it shows below: **tcp        0      0…
fajin yu
  • 195
  • 3
  • 10
0
votes
1 answer

How can I rsync a directory that might be busy with updating files?

I would like to transfer a directory of files to a remote destination. Easy. However, at any given time, one or many of these files may be in-use and being updated by users. This doesn't bother rsync - it will happily transfer the files ... but the…
user227963
  • 209
  • 1
  • 2
  • 11
0
votes
1 answer

how to know if we reached the max value of fs.file-max

on our linux rhel servers fs.file-max set with 100000 sysctl -p | grep fs.file-max fs.file-max = 100000 from my understanding the file-max kernel parameter refers to open file descriptors, and file-nr gives us the current number of open file…
King David
  • 549
  • 6
  • 20
-1
votes
1 answer

Could anyone please tell what the lsof mean is?

please see this image Hi, there. please check this image. I had a suspicious IP address and I ran the last command. Anyone please tell what that lsof is? Did somebody run the lsof command on my server? but I've never run that command
byemen
  • 1
-1
votes
1 answer

Verify that Logging is up and enabled

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME httpd 1744 apache 16w REG 202,1 0 167906281 phpapi_access_log httpd 2334 apache 16w REG 202,1 0 167906281 phpapi_access_log Above is the output of lsof…
Aso'K
  • 21
  • 6
-3
votes
1 answer

Display only some of the lines of the lsof command

I am trying to create a bash script for displaying only certain lines of the lsof command. I have figured out that the lsof command itself lists information in the form of columns which show info about correspondingly: COMMAND PID USER FD …
mihaylov
  • 3
  • 2
1 2 3 4 5 6
7