I'm inclined to guess that restarting was the cure (See my edit to my previous post.), not anything to do with Terminal.
More: By the way,
any time you run into a weird issue, the first thing you should do is shut down your Mac and restart it.
And I'll suggest that you don't get into running Terminal commands that you find...somewhere. An incorrect command can do untold damage, and as a matter of fact, the only line in your Terminal output that means anything to me is
Incorrect number of parameters
which suggests that the command you ran is NOT a correct command.