Run the following command to create a new console app from a template:
dotnet new console -o DotNetCoreTwoHelloWorld
Then switch to the directory that was just created and run it with these two commands:
cd DotNetCoreTwoHelloWorlddotnet run
Your console should look something like the following screenshot (if you're using PuTTY on Windows):
Assuming ...