diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index 83b02eebb..364f7855f 100755 --- a/lgsm/functions/info_messages.sh +++ b/lgsm/functions/info_messages.sh @@ -667,7 +667,8 @@ fn_info_message_ports(){ echo -e "${startparameterslocation}" echo -e "" echo -e "${lightblue}Useful port diagnostic command:${default}" - echo -e "ss -tupl | grep ${executable//.\/}" + executableshort="$(echo "${executable//.\/}" | cut -c -15)" + echo -e "ss -tupl | grep ${executableshort}" echo -e "" }