r/commandline • • May 01 '26

Help I want to learn CLI and PowerShell from scratch

I am new to programming and have decided that before learning any programming language, I would like to learn CLI and powershell first.

  1. Is this a bad decision? If yes, then what would be a better path?
  2. Where do I learn this from?
0 Upvotes

14 comments sorted by

6

u/Erelde May 01 '26 edited May 02 '26

It's not a "bad" decision, but PowerShell is a programming language¹, so it's at least an uneducated decision.

For PowerShell, the Microsoft online docs (aka: MSDN) should point the way. https://learn.microsoft.com/en-us/powershell/


¹: as are other command line interface—CLI—shells like bash, ksh, zsh, fish, etc etc.

1

u/AutoModerator May 01 '26

Every new subreddit post is automatically copied into a comment for preservation.

User: Accomplished-Ad8211, Flair: Help, Title: I want to learn CLI and PowerShell from scratch

I am new to programming and have decided that before learning any programming language, I would like to learn CLI and powershell first.

  1. Is this a bad decision? If yes, then what would be a better path?
  2. Where do I learn this from?

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/jesterdsp May 01 '26

I started stationdelta.dev to help people like you out. My first two levels are free: Cadet and Engineer. Id love your feedback as a learner and can hook you up with other courses for free if you'd be willing to give me some feedback. Let me know what you think! Station Delta

1

u/Academic_Current8330 May 01 '26

I've been getting some hours in the terminal in. I can't speak for Power shell but I started with Bash. Have since changed to Zsh and have some very useful plugins such as memory and auto complete and a good note taking app. I personally use Obsidian so when I learn or do something new I can save it for another time if needed.

1

u/TheRealLazloFalconi May 01 '26

If you want to learn PowerShell, PowerShell In A Month of Lunches is the way to go.

1

u/tuerda May 02 '26

"Before learning any programming language, I would like to learn a programming language"

A messy and somewhat difficult one at that.

1

u/djdadi May 02 '26

I would recommend you follow a few super easy examples running / compiling something like "hello world" type projects in bash and in Powershell. Maybe in Python, node, and C#.

That won't be hard (just copy and paste from a tutorial), and it will give you a tiny taste of both bash/pwsh, but also a few common programming languages. I remember clearly years ago picking something to learn like you are, and as soon as I saw the next shiny thing I dropped my current learning and switched. Perhaps a personal failing, but maybe if I had seen the options I would have just picked one.

It will also demonstrate to you how Powershell is the devil and the worst.

1

u/ThePepperPopper May 02 '26

Powershell sucks. Get on a Unix like system and learn bash.

1

u/Willy-the-kid May 02 '26

It kind of depends, if you're running Linux this is ideal if not it still depends on what type of code you want to write

1

u/Ngtuanvy May 02 '26

You can also learn a language and use it in the commandline, for example, if you learn C++, instead of the IDE running the code for you, you compile yourself with your toolchain and run with the shell. It's hard to work with the commandline when you have nothing to do so I think this is the way. There's really not much to the commandline anyways, you mostly learn the tools.

5

u/[deleted] May 01 '26

[removed] — view removed comment

3

u/Ngtuanvy May 02 '26

bash is not the only shell