howtogeek — 2013-05-13T04:06:02-04:00 — #1
Originally published at: http://www.howtogeek.com/163127/how-powershell-differs-from-the-windows-command-prompt/
You may have noticed a new command-line environment in Windows since Windows 7 — PowerShell. PowerShell is a much more powerful command-line shell and scripting language than the Command Prompt is, giving Windows system administrators a useful command-line environment.
rothgar — 2013-05-14T02:37:45-04:00 — #2
Speaking of differences. @ChrisHoffman do you (or maybe @taygibb) know how to get PowerShell to use line selection instead of block selection? It drives me crazy. See picture
Also, one other annoyance I have is when I use the up arrow to scroll through history, I can't press down and get back to a blank line. Any idea how to make that work the way it does in bash? I often push up to a really long command and then have to backspace the whole thing (or ctrl+a del) just to blank out my line again. It's very annoying.
geek — 2013-05-14T09:01:18-04:00 — #3
Can't you just press the Esc key to get rid of the current line?
rothgar — 2013-05-14T09:35:02-04:00 — #4
See I knew there had to be a way.
Wonder why I never found that in searching for it.
vistamike — 2013-05-14T09:44:41-04:00 — #5
More on PowerShell, video;
geek — 2013-05-14T09:46:54-04:00 — #6
I think you'd have to use an alternate command window, because the default Command Prompt doesn't let you do line selection - drives me crazy too.
chrishoffman — 2013-05-15T06:44:52-04:00 — #7
Quite possibly. I've never found a way to do this, but I admittedly haven't spent too much time with PowerShell. It's definitely annoying when I've used it.
Off topic, but interesting and PowerShell-related:
"These junior developers also have a tendency to make improvements to the system by implementing brand-new features instead of improving old ones. Look at recent Microsoft releases: we don't fix old features, but accrete new ones. New features help much more at review time than improvements to old ones.
(That's literally the explanation for PowerShell. Many of us wanted to improve cmd.exe, but couldn't.)"
-A Windows Kernel Developer
mkanet — 2013-10-03T00:46:19-04:00 — #8
However, PowerShell isn’t like the Linux terminal — it’s a bit more complicated, ...
Sorry, I felt I should comment when I saw this. I'm sure the OP probably meant to say "complex" instead of "complicated". IMO, with Powershell it's easier to do more complex/powerful automation tasks by even inexperienced IT admins. That's actually, how it was intended to be.
adbertram — 2013-11-25T22:38:13-05:00 — #9
Powershell is more complex than using something like Bash in a *nix terminal. However, it is much more powerful. Because in Powershell everything is an object (even strings, booleans, everything) with properties the capabilities of the language is far more advanced.
edit by mod- please no signatures
geek — 2013-12-13T10:49:59-05:00 — #10
This topic is now closed. New replies are no longer allowed.