From dba33d6681d12c9c376bec202998d72f34128fc7 Mon Sep 17 00:00:00 2001 From: its-coded-coder Date: Fri, 22 Aug 2025 19:37:08 +0300 Subject: [PATCH] Add one liner to kill process on port --- tools/ubuntu.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ubuntu.sh b/tools/ubuntu.sh index e5d441f..53ea927 100644 --- a/tools/ubuntu.sh +++ b/tools/ubuntu.sh @@ -21,6 +21,7 @@ cat /proc//maps # Show the current virtual memory usage of a Linux ip r # Display ip of the server lsof -i :9000 # List process running on port 9000 +kill -9 $(lsof -t -i:PORT) # Kill the process running on whichever port specified journalctl -u minio.service -n 100 --no-pager # List last 100 logs for specific service