(1) The Linux command you posted is a one-line command. Does it do what you want? Is its complicated from the only problem with it? To call it by a simple name (e.g.
ssg ":22"
), you need to build a script or a shell function that uses the command in the right way. Is such ssg
what you want to achieve? (2) You're asking for "Windows and Linux commands". A fellow user who can answer for one OS does not necessarily can do it for the other. If two partial answers appear, each perfect for one OS, which one will you accept? Consider asking separately.