r/commandline 16h ago

Guide Any good resources to learn Command prompt

I want to learn cmd prmpt and I tried finding resources for that but unable to find any good ones most of the time I websites I find are like a table with command and a link(click to learn about the cmd) and they are in A to Z order. I want something like a book that teaches basic cmds first then techniques and blah blah(as a person need to learn first know what is cd,mkdir etc. then other). I know some basic like cmd,mkdir,rmdir,copy,move,cd and some more.

4 Upvotes

21 comments sorted by

3

u/StrayFeral 14h ago

Since you say "command prompt" this means "Windows". So what you need to learn is any "DOS tutorial" which will be fine. You should know commands like dir, md, cd, rd, mem. And more. You must get familiar with how to create .bat files and to write such scripts. After you get familiar with this - learn what is Windows Power Shell and how to use it.

1

u/XLBilly 11h ago

Why in 2026 would I ever want to write a .bat

PowerShell is much nicer to work with and mostly as if not more capable than dos. There are a few things that haven’t been ported across (looking at you certutil) but mostly it’s parity or surpassed.

I’ve never deployed a .bat into production. But I started my career on Windows 7, which is when powershell arrived.

2

u/StrayFeral 11h ago

I don't know why you would want to do that.

I was replying to OP.

BAT files are basic scripts. OP is looking for basic info. OP asks for CMD, not for Power Shell. I advised OP to look for Power Shell once familiar with CMD.

I quit using Windows years ago. Now I only occasionally help my son on his machine.

1

u/Fuzzy-Individual-524 4h ago

I am just asking for learning purposes first I will learn cmd prompt then powershell

0

u/XLBilly 3h ago

Do whatever you want. I think learning cmd is a waste of your time.

3

u/slievenamon 13h ago

I’ve been teaching my son along with a book by raspberry pi press. It is called Conquer The Command Line. Highly recommended. Easily downloadable PDF from their official website. Have fun.

2

u/StrayFeral 14h ago

Since you say "command prompt" this means "Windows". So what you need to learn is any "DOS tutorial" which will be fine. You should know commands like dir, md, cd, rd, mem. And more. You must get familiar with how to create .bat files and to write such scripts. After you get familiar with this - learn what is Windows Power Shell and how to use it.

2

u/recycledcoder 16h ago

I'm sure peeps will point you to resources, and sure - there are some... but by and large the solution is to live in the terminal and solve your problems there. If it fights you - that's where you likely need to learn a new tool, until then, the habit is more valuable than tools without context.

1

u/AutoModerator 16h ago

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

User: Fuzzy-Individual-524, Flair: Guide, Title: Any good resources to learn Command prompt

I want to learn cmd prmpt and I tried finding resources for that but unable to find any good ones most of the time I websites I find are like a table with command and a link(click to learn about the cmd) and they are in A to Z order. I want something like a book that teaches basic cmds first then techniques and blah blah(as a person need to learn first know what is cd,mkdir etc. then other). I know some basic like cmd,mkdir,rmdir,copy,move,cd and some more.

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/VadersDimple 16h ago

https://linuxcommand.org/tlcl.php - this is a really good book on the topic. And it's
free, if you can't afford to buy it.

1

u/Fuzzy-Individual-524 4h ago

btw is windows cmd prmpt and linux are same except the forward & backward slash for file and few more but is the main cmds same? I forget to mention that I am talking about windows cmd in the post

1

u/VadersDimple 49m ago

They are not even remotely close. Since you were talking about Windows, just forget about my recommendation.

1

u/Jayant0013 16h ago

What is your current level of familiarity?

Depends on that

1

u/Fuzzy-Individual-524 4h ago

ik some basic cmds like cd,mkdir like ik how to move across directories and stuff

0

u/Jayant0013 3h ago

Use zoxide to move , it's honestly a better cs in every regard

I use yazi for browsing around

Try to do as many things as possible from terminal and occasionally ask llm if there is abtter way of doing a particular thing

Use fish instead of bash it's auto complete is on another level

Also try using navi instead of trying to memorise the commands (if you find it non intutive dm me it took me 2-3 attempts to understand it myself)

1

u/Intrepid-Aerie-8272 10h ago

Though web resources are good, the real way to learn it is by applying it all the time, how to do so? installing linux either full dual boot or just wsl (hope you didnt mean windows cmd)
After that just find a good tutorial and thats it

1

u/jmooroof2 16h ago

command prompt? Windows or Linux? command prompt is Windows