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/