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
Devhints cheatsheet and this gist was helpful for me. Beside that its just googling efficiently.
Just came here to post the dev hints links and saw you already did
Nice! THanks @sagunsh - gonna read these today right after work
https://www.katacoda.com/ is simple and good
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/
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.
try this https://effective-shell.com/
Try starting from my article about bash commands for web developers:
https://code.tutsplus.com/articles/useful-nix-shell-commands-for-web-developers--cms-26161
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
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()
:Dbash 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.)]
For bash scripting this ebook is pure gold https://leanpub.com/learnbashthehardway
Nice! Bookmarked this for a long and thorough weekend reading
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.
Hmmm I am with AWS right now. It feels like alice in wonderlands rabbit hole sometimes! :D
This comment was deleted 3 years ago.