r/bash 15d ago

help LeetCode for shell / bash

i'm looking for a place to practice bash or just shell in general, is there a place like such where i can practice daily and improve my muscle memory when it comes to shell commands? at the moment leetcode only offers like 5 shell problems and other focus more on teaching the basics or is more focused on solving mini problems than the shell itself like sadservers.

is there any platform where i can daily practice shell just like platforms where you can daily practice competitive programming problems?

TIA and sorry for grammar erros, english isnt my first language.

32 Upvotes

24 comments sorted by

12

u/feinorgh 15d ago

There's also a bash track on Exercism: https://exercism.org/tracks/bash

3

u/countnfight 15d ago

Seconding exercism! Two things I really like about it: you can work on exercises on your own machine and submit from there instead of being locked into a sandbox on the platform, and a lot of exercises are available across different languages, so you can practice different approaches in different languages.

1

u/1mmortalNPC 13d ago edited 13d ago

thank you guys, exercism is really great, i like how they tell you what to do and show you an example of how the output should be instead of telling exactly how to do it

6

u/SadServers_com 15d ago

We can look into creating more complex or programming-like Bash scenarios in SadServers

2

u/1mmortalNPC 15d ago

please i would love that

6

u/BenFromWhen 14d ago edited 14d ago

This guy https://ysap.sh/ teaches Bash like Stand up comedy 😅🔥
But seriously, gives a lot of value

2

u/1mmortalNPC 13d ago

🤣he just got a new subscriber and im loving his contents

1

u/BenFromWhen 13d ago

And also Pay for codesignal. Totally worth it

1

u/1mmortalNPC 13d ago edited 13d ago

im loving it, but there's so much hidden great free resources that i usually dont pay for this kind of stuff

4

u/sheltongenie 15d ago

I use freecodecamp.org - but I don't know if it has as much practice as you are looking for.

3

u/1mmortalNPC 15d ago

it also covers mostly the basics

3

u/SuperchargedCareers 14d ago

Hey, I've been looking for a site like that too! I found that CodeSignal has a decent collection of bash challenges, and they also offer a leaderboard to keep things interesting. Plus, it's free to use! (https://app.codesignal.com/arcade/intro/level-1/)

1

u/1mmortalNPC 13d ago edited 13d ago

its behind a login page but ill check it

edit: even though everything is AI generated the content is great, specially the practice section and i love that i get dynamic feedback instead of fixed responses based on the exercise, thanks for the recommendation

i would love if the IDE integrated with codesignal API was of our choosing instead of their own IDE, or if they could just add vim motions on the platform's code editor

4

u/MedIngeniare 15d ago

Lots of free scenarios on killercoda

1

u/1mmortalNPC 15d ago

thanks, i will look into it

2

u/G-man88 15d ago

The best thing is to build a debian or rhel server in your home and play in it yourself. You could also look into hacknet (it's on steam typically for like $2) it's a game that uses real bash commands and it's fast paced so if you're looking at developing muscle memory quick give yourself something with benign stakes like a game. You can fail but it's not going to destroy anything so you can do it until you succeed.

1

u/1mmortalNPC 13d ago

ive actually been thinking about a debian server, i just don't have a spare pc for it, i plan to locally host everything i can, i want to start by creating a cloud storage of 2TB so i dont need to depend on icloud and other cloud infrastructures but its a plan for the future

2

u/StrangerFantastic392 14d ago

If you're on windows, install wsl and use it. Learning by doing is the best thing to do imo

1

u/1mmortalNPC 13d ago

i use arch btw, i can say im pretty good at the basics already, i just want to improve because sometimes when i read other people scripts on github i dont understand what some commands do and I have to trust AI's guts to run those scripts

1

u/StrangerFantastic392 13d ago

What commands are you referring to? Maybe I can explain?

1

u/1mmortalNPC 13d ago

thanks for trying to help but the problem are not single commands, if that was the case i could simply read the manual for it but what complicates me is the combination of multiple unknown commands, and it would be a tiring to learn each unknown command everytime im reading a script, hence why i want to learn new things so that when i read a new script i can at least know what most part of it is doing

2

u/Patient_Force6138 14d ago

The terminal is a pretty good place. I’m being kind of a smartass but really, any Linux machine is going to have a ton of bash on it. Try to automate the things you want to automate, use local files to help and google the rest. You’ll be killing it in no time.

1

u/1mmortalNPC 13d ago

thanks but i already do this, i created shortcuts for commands and repetitive flags and i create small scripts when i need something fast and dynamic