Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

ss

The ss is great for local port checking, as I might have made obvious for the number of times we've used it throughout this book so far:

  1. If you have a web server on your machine, and you know for a fact it should be running on port 80, you might find yourself using the fish arguments first, regardless:
$ ss -tunaNetid State Recv-Q Send-Q Local Address:Port Peer Address:Port udp UNCONN 0 0 *:733 *:* udp UNCONN 0 0 127.0.0.1:323 *:* udp UNCONN 0 0 *:68 *:* udp UNCONN 0 0 *:111 *:* udp UNCONN 0 0 :::733 :::* udp UNCONN 0 0 ::1:323 :::* udp UNCONN 0 0 :::111 :::* tcp LISTEN 0 128 *:111 *:* tcp LISTEN 0 128 *:22 *:* tcp LISTEN 0 100 127.0.0.1:25 *:* tcp ESTAB 0 0 10.0.2.15:22 10.0.2.2:51224 tcp LISTEN 0 128 :::111 :::* tcp LISTEN 0 128 :::22 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content