Say Hello folks, “Hello Powershell!”
Hmmm, apparently OUR Powershell console is being silly.
But iit looks so deceptively simple, like a command prompt. In fact that’s where many of us stop. We type in DIR and get something like this.
And so, we logically deduce; It appears to be just that. Just command prompt with a new coat of paint. But it isn’t. It is SO much more than that and can be as simple or as complex as you need.
Powershell is a Management Shell with Scripting abilities or a Scripting Environment that some people use to manage systems. It can be whatever YOU need it to be. THAT is the Power of it. The sheer flexibility.
Or it can be as comfortable as your old Command Prompt window.
So what happened when I keyed in DIR? Isn’t that a DOS Command?
What you actually just ran was an “ALIAS” which is sort of like a Shortcut. An Alias allows you to take something and put it into simpler terrms, or sometimes more familiar terms.
If we were to type in this command in Powershell.
It would show us the actual command we are typing is
As evidenced by the line “Definition”
You could just as easily create an Alias for GET-CHILDITEM and call it “AWholePileOfSillyJibberish” like so.
NEW-ALIAS AWholePileOfSillyJibberish GET-CHILDITEM
And when you keyed it in
But an alias is supposed to make things easier so we could have just keyed in something a little less complex (like DIR) or even the letter “D”. The other thing to remember about an alias is you can have as MANY as you want. In Powershell if I wish to have it show me every alias I created for “GET-CHILDITEM” I can type in.
ALIAS –Definition GET-CHILDITEM
It would list all of the Aliases you had for that command. There is a lot more going on in Powershell other than Aliases but that’s for another time. For now let’s key in EXIT to exit our session.
Til Next Time, remember
The Power of Shell is in YOU
The Energized Tech