Answer the question
In order to leave comments, you need to log in
How to dot the i's on using Bash and Python for DevOps?
I work as a network engineer, started development in the direction of DevOps and immersed myself in learning Linux.
I want to clarify, for myself, the issue of writing Bash scripts and using Python.
I found a tutorial on programming in the Bash language (326 pages) and a number of questions arose, please tell me:
1. Real cases of writing and using Bash scripts, what tasks do they solve?
2. How many hours, approximately, will it take to learn and practice writing scripts in Bash, how to dive deep?
3. What should be able to write Bash junior/middle/senior DevOps?
4. Is it worth it to spend a day or two for Bash scripting, be able to write basic scripts and move on to learning Python?
Python:
1. Where and why is Python used in DevOps practice, real, everyday use cases?
2. What level of Python knowledge should junior/middle/senior DevOps have? (Familiar middle DevOps and Python does not know the word at all).
3. How many hours, approximately, will it take to study and practice for each level, how to dive deep?
Answer the question
In order to leave comments, you need to log in
You are not good for devops.
This is a very common answer to this very common question.
Devops is a person who doesn't ask questions. He answers them. Self-reliance is one of the key skills for a Devops. You are missing it.
And this is definitely a person who is NOT afraid of reading 326 pages of the manual.
Devops has to read about a hundred times more documentation. In year. Think carefully, do you need it, if the prospect of learning even the most primitive basics scares you so much that you came to the toaster to bargain?
In devops, as in infosec, it is very rare to enter from scratch.
You need to start either as a system administrator (not an enikey manager) or a programmer (not wordpress).
And then, having already developed as a programmer / system administrator, you can think about moving towards devops.
1. Real cases of writing and using Bash scripts, what tasks do they solve?
2. How many hours, approximately, will it take to learn and practice writing scripts in Bash, how to dive deep?
3. What should be able to write Bash junior/middle/senior DevOps?
4. Is it worth it to spend a day or two for Bash scripting, be able to write basic scripts and move on to learning Python?
1. Where and why is Python used in DevOps practice, real, everyday use cases?
2. What level of Python knowledge should junior/middle/senior DevOps have? (Familiar middle DevOps and Python does not know the word at all).
3. How many hours, approximately, will it take to study and practice for each level, how deep to dive?
It’s hard to say, because they haven’t decided exactly what DevOps is yet)) Docker and Kubernetes are generally written in Go.
My equipment, home and hobby, runs on *nix. I administer it clearly myself. I completely get around the shell. And this is a must have, you simply cannot do without knowledge of sh, including with virtualization and in the clouds. Python was never needed. Probably complex administration tasks are better solved in Python, but apparently I have not encountered such ...
Hello,
Bash decides this: once you realize that you’ve stopped writing bicycles (especially if someone already knows how to write them better) and you go looking for something ready-made, and it’s not rare - HOP! - written in Bash python
example
the answer is simple - Ansible
What time is it
In python, you can write, for example, a simple image hosting. I doubt it on the head, although the devil knows, maybe there are craftsmen.
And it depends on what kind of devops
if a netdevops background is needed, then you can say there is no bash at all,
if only in cumuluses and sonics what
bash is an applied topic to the Linux console in the first place. well, where you need to deploy services on all sorts of different Linuxes.
and even then the developers of Linux distributions have been solving these problems for a long time and tightly on the python
and doing it right. because the tasks are getting harder, and bash is retrograde squalor, pain and suffering. Its place has long been in the museum.
But this is all poetry, and the main thing I wanted to say is - do not mix the study of one and the other,
study them as separately as possible so that the ugly bash practices (well, I can’t call it PL) do not interfere with learning normal programming.
at the same time, it’s enough to read the manual at the bash level and learn how to read (not write) start scripts
, but python, like other normal PLs, is a completely different story
, you need to dive deep and for a long time there
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question