Useful commands – often overlooked

Linux/Unix etc


htop :: Shows process information in an interactive display from the command line on a *nix box


lsof :: This lists “Open Files” on a *nix system – the common arguments are: -i -P and -n
The -i option means show IP sockets -P means do NOT show port names but only port numbers ( ie not https but 443) and the -n means no DNS lookup (do not show hostnames)

see: https://www.howtoforge.com/linux-lsof-command/


Powershell

Powershell has a Grep type command which I find very useful:

Select-String -Path C:\temp\*.log -Pattern “Dichotomy Larder”

See: https://www.thomasmaurer.ch/2011/03/powershell-search-for-string-or-grep-for-powershell/

Social Tedium

I like Andy Murray. I admire his tenacity and his achievements.

Several years ago I took lessons and had some casual games practicing with his Mum at Next Generation in Edinburgh. I have only ever won a single sporting “prize” in all my life – a Tennis competition arranged by Judy Murray.

So watching his ascendancy and his flourishing career was always of interest. I really enjoyed Tennis.

So when I saw an image of Andy and an online “article” link from a popular newspaper website I thought I would give it a read. It was a regurgitation of old stories designed to add some comment on a quiet day. Nothing new. No interview or revelations. I then made the mistake of reading the comments: He deserves applause for surviving childhood trauma … he is “playing” on his childhood trauma … he loves Britain … he is Scottish and so he must hate England … he is nothing compared to Federer … he is the GOAT from a British perspective…

Utter tedium and utterly predictable and a complete waste of the few minutes I spent perusing them. I suspect that there are many people in claggy jogging bottoms who spend their lives being experts on Formula One, Politics in the UK and the US, Tennis, Football, Gaming, Misogyny, the BBC, Airline safety, the Legal system, History, Sci-fi, cinema-noir, Scandinavian heavy rock music, Coding, Photography …

All this expertise across such a broad spectrum and so often all stored in one, flaky, flabby, prematurely balding, wrinkly, red, spotty skull.

So many of them. All of them socially interacting on their own against other people who are even greater experts. These folks seem to have friends who were in the SAS or they were once “victims” themselves. Many of them even played Tennis at some time.

Social media will evolve – it is improving on some platforms. Twitter is my preferred social drug of choice. I detest Facebook. I do not have the lifestyle to fit into Instagram. I believe there are others, too.

The polarisation of it all will lead to conflict. It will lead to social change. Much less pervasive communications throughout history have and frequently did lead to division, revolution and change.

This revolution just feels particularly bland. The Tedious Revolution.

Accessing by SSH Public Key Authentication

Quick notes for an already well documented method. From a *nix based machine (my iMac while writing this).

ssh-keygen -t rsa -b 4096 -C “me@emailaddress.com”

Choose an id filename – on this instance I set: id_rsademo

ssh-copy-id -i ~/.ssh/id_rsademo me@192.168.0.1

The connection is to the machine on its ip address – this simply has to be able to resolve so it can use DNS

A good write-up is available here: https://www.ssh.com/ssh/copy-id