🐍 Learn Python with Google | Bash Scripting  | Video Log - Week 9
Channel: Fabio Pacifici
Date: 2020-04-24

This is week 9 of my learn python with google video log.
It was time to work on the final assessment for Module 5!

Using the Qwiklabs the assessment was about Implement unit testing. 
Easier than I thought, I must say that! I did it as the first thing on Monday and it took me not much to complete and pass it.

So, I started the new module - Module six! The course has one more module then It's complete and I will earn a new certificate. Cool!

Module 6 was about a new programming language, called Bash Scripting.

📌The Key Concepts here were:
    - Understand and use basic Linux commands by navigating through and making new directories, 
    - reading and creating files, and moving files between directories
    - Create bash scripts and execute them
    - Execute scripts using variables and globs to influence the output of these scripts
    - Utilize while and for loops in bash scripts
    - Understand when it’s necessary to use Bash scripts over Python scripts

The module started with a section related to how to use the Linux shell 
We started studying some of the basic Linux commands, I knew all of them already however, it's over five years that I use Linux as my main Operative system. I love it.

Then we moved to read streams and studied a process called Redirection. That is a process of sending a stream to a different destination.

Here we used redirection redirect the standard output of a command to a file using the greater then symbol and we studied how to append the standard output to a file using the double greater symbol. 

The studied that we can also redirect the standard input. 
And instead of using the keyboard to send data into a program, 
how we can use the less than symbol to read the contents of a file.

We then move to another way to perform IO stream (Input/Output) redirection called Piping.
We used pipes (|) to connect multiple scripts, commands, and other programs into a data processing pipeline. 

Practically, pipes connect the output of one program to the input of another program.

So, we studied how we can pass data between programs, taking the output of one and making it the input of the next.

Like when using the "ls -l | less" command we take the output of the ls command and we pass it to the less command that lets us visualize a long list of results in a paginated way.

The following section was related to signals and processes. 

Signals are tokens delivered to running processes to indicate the desired action.
Like Ctrl-C that Interrupts a running process politely sending the SIGINT signal.

Or the Ctrl-Z that Stops a running process without properly terminating and sends the SIGSTOP signal.

Or even the kill command that sends a signal called SIGTERM that tells the program to terminate.

We also covered how to use the "ps" command to list current running processes and a few of its options.

The section ended with a quiz about QUIZ before moving to the next topic.

Here we started using Bash Scripting, including creating scripts using variables and globs and conditionals in bash.
Then another QUIZ before moving forward.

After that was the time to learn some Advanced bash concepts like while loops, for loops and how to choose between bash and python. 

Another QUIZ time before the final module assessment. 

The module six's assessment was using Qwiklabs to Edit files using substrings. 

I must say that despite I completed and passed the assessment quite easily, at this point I was a bit confused and overwhelmed so I took a break.

I did that by recording the episodes 6 and 7 of my Python course for beginners(in Italian) so if you speak Italian you can watch the course for free on my website or YouTube channel.

During the break, I have listed some music and watched a couple of funny videos until I accidentally watched a video called how to rap for beginners. It gave me the inspiration for the final project of my python course, that will be in Episode 8 of the Python course for beginners. 

So I created a script to write a rap song. More on it maybe next week.

The week was over so I just watched the Introduction of module 7 of the python course  that is about working on a final project. 

That was it for week 9!
And again a lot more to process in the following weeks I guess.

That is for this week's video log! I'll see you next week!

🏡 As always, 
STAY HOME, PROTECT YOUR FAMILY AND SAVE YOUR ASS.

🤓 Read more about my journey learning Python with the Google IT automation with Python professional certificate below:
https://fabiopacifici.com/learn-python-google-it-automation-with-python/