HOW TO USE SS TO INVESTIGATE SOCKETS INSTEAD NETSTAT


If you're looking for network connections in Linux, you probably used the netstat at some point. It is very useful to list the connections created, see which ports the server listens, etc.

Well, it's a tool similar to netstat. Netstat tells us that we use ss on the page of his leg!

[note
This software is old. The netstat replacement is SS. Replace netstat -r is the ip path. Replace with netstat
Who am I alternative IP to netstat -g is ip maddr.]

Using ss, simply open and enter the device:

[ss]

For better information, you can give some options

[ss [options] [filter] ]

Let's start with "everything"

[ss -a]

That proved enough ... You'll see on the left side that you have some fixed connections and waiting times, etc.

We will reduce this a bit ... and we will only show the ports we hear. We will use -l (listen), -n (digital ports) and -p (see listening process).

[ss -lnp]

Very good? if you do not see operations using ports, it should be root, so put sudo in front of another command.

Display the help screen

[ss -h]
Will show this

  • [Usage: ss [ OPTIONS ]
  •        ss [ OPTIONS ] [ FILTER ]
  •    -h, --help        this message
  •    -V, --version    output version information
  •    -n, --numeric    don't resolve service names
  •    -r, --resolve       resolve host names
  •    -a, --all        display all sockets
  •    -l, --listening    display listening sockets
  •    -o, --options       show timer information
  •    -e, --extended      show detailed socket information
  •    -m, --memory        show socket memory usage
  •    -p, --processes    show process using socket
  •    -i, --info        show internal TCP information
  •    -s, --summary    show socket usage summary
  •    -4, --ipv4          display only IP version 4 sockets
  •    -6, --ipv6          display only IP version 6 sockets
  •    -0, --packet    display PACKET sockets
  •    -t, --tcp        display only TCP sockets
  •    -u, --udp        display only UDP sockets
  •    -d, --dccp        display only DCCP sockets
  •    -w, --raw        display only RAW sockets
  •    -x, --unix        display only Unix domain sockets
  •    -f, --family=FAMILY display sockets of type FAMILY
  •    -A, --query=QUERY, --socket=QUERY
  •        QUERY := {all|inet|tcp|udp|raw|unix|packet|netlink}[,QUERY]
  •    -D, --diag=FILE    Dump raw information about TCP sockets to FILE
  •    -F, --filter=FILE   read filter information from FILE
  •        FILTER := [ state TCP-STATE ] [ EXPRESSION] ]

  • [message]
    • Thanks for visiting this blog
      • Support us by comment if you have a problem. thank you
Source and thanks to; Linux.org.

Let us know how you want it below in the comments!

COMMENTS

Name

7zip,1,Android,8,Android Emulator,1,APK,2,AppImage,1,Apple,3,APT,3,Arch,5,ASUS,1,Black Shark,1,BlueStack,1,Calculator,1,Cinnamon,1,Client,3,Code,3,Comic,1,Compression Tool,1,Debian,6,DELL,1,Desktop,2,Developers,3,Elementary OS,1,Encryption,1,FACEBOOK,1,Fedora,4,fix,2,Fortnite,1,Gadgets,4,Gamer,4,Gaming,1,geeks,11,GNOME,3,GNOME TWEAK TOOL,1,Google,2,Google Go,1,Hacking Tools,1,How To,19,IBM,1,IDE,1,Intel,1,iOS,4,iPads,1,Javascript,1,Kali Linux,1,KDE,2,Laptop,1,linux,24,Linux Mint,6,LXDE,1,Mac,2,MacOS,4,Manjaro,2,MATE,1,MX Linux,1,Network,3,NEWS,9,Open Source,16,OpenSuse,3,ParrotSec,1,Password,2,Programming,2,Programs,6,Repository,1,Review,2,ROG Phone,1,Security,4,Server,1,SmartPhone,3,SNAP,1,Snapd,1,Software,3,SONY,1,TECH,13,Text Editor,2,Torrent,1,tutorial,16,Ubuntu,10,Ubuntu Kylin,2,vim,1,VMware,1,VPN,1,Web Master,1,Whatsapp,1,Windows,5,Windows Phone,1,XFCE,1,Xiaomi,1,XPS,1,Zorin OS,1,
ltr
item
Linuxer Geeks: HOW TO USE SS TO INVESTIGATE SOCKETS INSTEAD NETSTAT
HOW TO USE SS TO INVESTIGATE SOCKETS INSTEAD NETSTAT
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtZj3x3lmNMPGLVJDfY-OJwwV8qbwUMjMW-kFFCmnZH3bFfgGhJcZLuHDVCoYTEfLiiw-oceyohTfwzAdYm482XYEy5i2wyTIxgS9uhV5t_-GYuSWjKRqIN45OSfZVQmmtVvtVx2hd97Y/s640/carbon+%25285%2529.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtZj3x3lmNMPGLVJDfY-OJwwV8qbwUMjMW-kFFCmnZH3bFfgGhJcZLuHDVCoYTEfLiiw-oceyohTfwzAdYm482XYEy5i2wyTIxgS9uhV5t_-GYuSWjKRqIN45OSfZVQmmtVvtVx2hd97Y/s72-c/carbon+%25285%2529.png
Linuxer Geeks
https://linuxergeeks.blogspot.com/2019/06/how-to-use-ss-to-investigate-sockets.html
https://linuxergeeks.blogspot.com/
https://linuxergeeks.blogspot.com/
https://linuxergeeks.blogspot.com/2019/06/how-to-use-ss-to-investigate-sockets.html
true
7822317774280320736
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy