From 62db82f0cd35f72d55541e7f84a5536e49d97033 Mon Sep 17 00:00:00 2001 From: patrick nsukami Date: Thu, 26 Feb 2015 23:08:21 +0000 Subject: [PATCH] Give me the service running on port. --- .bash_function | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bash_function b/.bash_function index 3cfa43d..7e04fd2 100644 --- a/.bash_function +++ b/.bash_function @@ -2,6 +2,12 @@ # my weird function file # lots of this coming from http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming +my_whois_onport(){ + # return the service on port + local port=$1 + sudo lsof -i :$port +} + my_mount_set_of_partition(){ # Mount set of partitions for recovery. for i in {1..12}; do -- 2.17.1