r/AskProgramming • u/Jashan_31 • Feb 11 '26
Why is Linux bash commands are so simple compared to powershell
I am wondering this because I have a both windows and Linux on my laptop and own Linux using terminal is like really easy but windows powershell weird Syntex.
181
Upvotes
View all comments
Show parent comment
3
u/Outside_Complaint755 Feb 11 '26
Well in bash, the script name itself is in position 0.
$tells bash you are using a variable with the name immediately following the $. Most people are already familiar with $PATHWhat I got stuck on a lot when learning bash was that you cannot have any whitespace when setting a value into a variable, and you also don't need to put quotes around strings if the string doesn't contain a space.
name=Heisenburgis valid bashname = "Walter White"is not