Both these commands work on most Linux and OSX/Mac machines. Replace spaces with dashes in files in a directory Replace a range of characers using
How to Update Brew and Upgrade all Packages on OSX
I used to run Linux Ubuntu up until a few years ago as my laptop. But I find the hardware and software on a Mac
How to View Processes and Their Respective Ports on Linux and OSX
If you want to see what processes are listening on what ports these you can use the linux command lsof and netstat. Below are a