list of open ptys linux code example Example: check what ports are open linux ## if you use linux sudo ss -tulw