Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #237921

Re: what binds to port

From IL Ka <kazakevichilya@gmail.com>
Newsgroups linux.debian.user
Subject Re: what binds to port
Date 2021-07-30 14:50 +0200
Message-ID <CGA7E-4dr-7@gated-at.bofh.it> (permalink)
References <CGyyT-3rE-9@gated-at.bofh.it> <CGyyT-3rE-11@gated-at.bofh.it> <CGyyT-3rE-7@gated-at.bofh.it> <CGySd-3yb-5@gated-at.bofh.it> <CGzlg-3HG-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

>
> > $ sudo ss -l4pon | grep [port]
>
> That grep command is wrong in a couple ways.
>
> First, the unquoted [port] is a live glob pattern for the shell.


I meant port number here, i.e.:
$ sudo ss -l4pon | grep 80


> Finally, you added the -n option to ss, which means it no longer prints
> service names; it prints port numbers instead.


Exactly, because I had a port number in my mind


> (And now that I've written all of this, it occurs to me that maybe
> you were using [port] as a syntactic symbol meaning "put the numeric
> port number here".  Normally we'd use <port> or _port_ for that.


Yes, you are right. I should have written it as <port>, not [port].
Sorry for the misleading comment.

I was trying to say that in modern Linux netstat is not installed by default
and ``ss`` is a preferred way.

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: what binds to port Dan Ritter <dsr@randomstring.org> - 2021-07-30 13:10 +0200
  Re: what binds to port IL Ka <kazakevichilya@gmail.com> - 2021-07-30 13:30 +0200
    Re: what binds to port Greg Wooledge <greg@wooledge.org> - 2021-07-30 14:00 +0200
      Re: what binds to port IL Ka <kazakevichilya@gmail.com> - 2021-07-30 14:50 +0200
  Re: what binds to port Greg Wooledge <greg@wooledge.org> - 2021-07-30 13:50 +0200
    Re: what binds to port <tomas@tuxteam.de> - 2021-07-30 16:40 +0200
      Re: what binds to port Brian <ad44@cityscape.co.uk> - 2021-07-30 19:40 +0200
        Re: what binds to port Brian <ad44@cityscape.co.uk> - 2021-07-31 14:20 +0200
          Re: what binds to port Brian <ad44@cityscape.co.uk> - 2021-07-31 17:40 +0200
            Re: what binds to port Brian <ad44@cityscape.co.uk> - 2021-07-31 19:10 +0200
          Re: what binds to port Brian <ad44@cityscape.co.uk> - 2021-07-31 18:50 +0200
            Re: what binds to port songbird <songbird@anthive.com> - 2021-08-01 17:30 +0200
              Re: what binds to port Greg Wooledge <greg@wooledge.org> - 2021-08-01 17:40 +0200
                Re: what binds to port Dan Ritter <dsr@randomstring.org> - 2021-08-01 18:00 +0200

csiph-web