Press F5 to run your console application. You will see that the OS is displayed in the output:
Go to the bin folder of your console application and copy the files to a folder on the desktop of your Mac. Call that folder consoleApp. In Terminal, navigate to the folder with the copied files. You can do this by typing the command cd ./Desktop and then type ls to list the contents of your desktop. Check if the folder you created is listed, and if so, in Terminal type cd ./consoleApp. List the contents of the consoleApp folder again by typing ls. In my case, the DLL was called NetCoreConsole.dll. To run the code you wrote earlier, type dotnet NetCoreConsole.dll and press Enter:
You can see that the code is run and the text output in Terminal.