10
15 Comments

Best resource for newbie to learn bash and simple dev ops stuff?

What is the best place to learn bash profiles & other simple devops concepts? ๐Ÿง I don't wanna become an expert, just working practical knowledge. I am a self learned coder, who is working full time on his SaaS. I have to find time for marketing & sales too, hence for now can't make a full career out of this! :) Just want to remove current roadblocks.

Every time I start a new project, I blindly copy-paste terminal commands. I just took 30 mins of googling to make Python3 the default version in virtualenvwrapper

I did the mistake a few months ago to install zsh shell which again I don't understand at all - it just looks more pretty

  1. 3

    Devhints cheatsheet and this gist was helpful for me. Beside that its just googling efficiently.

    1. 1

      Just came here to post the dev hints links and saw you already did

      1. 1

        Nice! THanks @sagunsh - gonna read these today right after work

  2. 1

    I think you will find this book extremely helpful as it contains everything you need to know to be productive in the Bash shell. And the best thing about it is that it is free.
    https://gumroad.com/products/Mrcmc/

  3. 1

    I like to use https://explainshell.com/ to dissect a bash command and understand how it works.

    Also https://tldr.ostera.io/ is a friendlier alternative to man pages.

  4. 1

    why do you consider zsh a mistake? It's way easier to extend and far better auto-completion. I love it.

    As for bash, I'd recommend creating an alias for everything that you use at a regular basis, even if you forget the alias you can just take a look and find it.

    https://gitlab.com/jrimek/mini-projects/config-files/-/blob/master/.bash_aliases
    this is my alias file, I've been extending it for over 4 years now.

    Best way you are gonna learn is to use it regulary, if you spend time now learning bash and don't use it for 3-4 month because you don't need it that much, odds are you will forget most of it

    1. 1

      Thanks you are right. But I feel today I am at a place where I dont even know what really an alias is (Though I have a few in my config too, but that was just blind copy paste from SO) :D Your suggestion on keep extending it makes sense.

      LOL on the why_is_this_happening_to_me() :D

      1. 1

        bash alias - e.g.:
        alias lrt='ls -lhrt' # Long listing of files sorted backwards by time

        Of course, if you want more power/flexibility than aliases provide, it'd probably be wise to study sh/bash shell functions - very useful and powerful, IMO. (e.g.:
        https://ryanstutorials.net/bash-scripting-tutorial/bash-functions.php
        ) [just found that by googling, but it looks pretty good to me on first sight.)]

  5. 1

    For bash scripting this ebook is pure gold https://leanpub.com/learnbashthehardway

    1. 1

      Nice! Bookmarked this for a long and thorough weekend reading

  6. 1

    Honestly, one reason I love DigitalOcean for hosting infrastructure is because they have a ton of great tutorials on dev ops, a lot of which is aimed at beginners.

    1. 2

      Hmmm I am with AWS right now. It feels like alice in wonderlands rabbit hole sometimes! :D

  7. 1

    This comment was deleted 3 years ago.

Trending on Indie Hackers
After 10M+ Views, 13k+ Upvotes: The Reddit Strategy That Worked for Me! 42 comments Getting first 908 Paid Signups by Spending $353 ONLY. 24 comments ๐Ÿ”ฅRoast my one-man design agency website 21 comments I talked to 8 SaaS founders, these are the most common SaaS tools they use 20 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments Hero Section Copywriting Framework that Converts 3x 12 comments