Comments on: 18 Quick lsof Command Examples for Linux Geeks https://www.linuxtechi.com/lsof-command-examples-linux-geeks/ Wed, 12 Jul 2023 04:51:37 +0000 hourly 1 By: Pradeep Kumar https://www.linuxtechi.com/lsof-command-examples-linux-geeks/#comment-9847 Thu, 02 May 2019 02:56:03 +0000 https://www.linuxtechi.com/?p=8416#comment-9847 In reply to Cyril.

Thanks Cyril for feedback and Comments, I have updated Example 18 as per your suggestion.

]]>
By: Cyril https://www.linuxtechi.com/lsof-command-examples-linux-geeks/#comment-9842 Wed, 01 May 2019 20:40:12 +0000 https://www.linuxtechi.com/?p=8416#comment-9842 Nice article.

Although example #18 could be better written with the PIDs passed through a sub-command:

# ps -fp “$(lsof -t /var/log/httpd/access_log | xargs echo)”

instead of having to grep all pids, and then yet another one to exclude the first grep

]]>
By: Alex E https://www.linuxtechi.com/lsof-command-examples-linux-geeks/#comment-9777 Mon, 29 Apr 2019 19:51:20 +0000 https://www.linuxtechi.com/?p=8416#comment-9777 Example 3 isn’t throwing an error because you’re calling it on itself, it’s throwing an error because you’re calling it on a non-existent file. Type any garbage file name there and you’ll get the same result.

lsof /usr/bin/lsof works just fine.

]]>