Skip to content

Instantly share code, notes, and snippets.

autoload -Uz compinit
compinit
CASE_SENSITIVE="false"
HISTSIZE=10000
HISTFILE=~/.zsh_history
SAVEHIST=10000
autoload -U promptinit; promptinit
@diogoleal
diogoleal / gist:3045996a417ddb940bd582740d4f46b5
Created February 6, 2023 12:25 — forked from Khoulaiz/gist:41b387883a208d6e914b
Checking ports without telnet

Here are several different ways to test a TCP port without telnet.

$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C

$ cat &lt; /dev/tcp/127.0.0.1/23