Hacker News new | past | comments | ask | show | jobs | submit login

Why did they have to make the output of `ss` so cumbersome? I often end up installing the legacy tooling just so I can have `netstat`



It seems like a missed opportunity not to have a JSON (or other explicitly machine readable format) output option for easy scripting use through jq. Every time I need to craft a grep regex to get some trivial piece of information from one of these tools, I feel there's a bug waiting to happen (and I'm usually right).



Hmm, not for everything, apparently. It works with "-json addr" or "-json link", but not with eg. "-json route" or most other things i've tried.


For the avoidance of doubt, this is not the official iproute2 repo.

This is the official one: https://git.kernel.org/pub/scm/network/iproute2/iproute2.git


I'd appreciate it... would also make generating pretty UIs around console applications easier as well.


Powershell is on linux now... ;)


The most underrated tool barely used outside of Windows sysadmin world.


In what capacity is Powershell something other than just another shell (of your choice)? Feela like Windows finally got a real CLI for API stuff - and O am glad this happened - but it's not really any different than csh, bash, zsh et cetera. A shell as a lower-level interface to your OS.


The main selling point of PowerShell is that you cannot save intermediate results of a pipeline to a file for inspection.


I'm a fan of 'lsof -i', in fact of lsof for anything. Makes lots of sense to treat network sockets and files as equals: that's the big idea of UNIX.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: