Practice Bash Scripting in Linux
Practice writing functional bash writing scripts to power up your abilities in Linux! Full content available April 2022.
StartBash Scripting In Application
Lesson 1 of 1
- 1In this lesson, we will explore the potential of Bash scripting. Since we can run any terminal command in a Bash script, there are truly endless possibilities. The ability to execute and link multi…
- 2Let’s work on a basic script that prints a directory structure in a tree format, which is useful for viewing nested subdirectories. The script takes advantage of the powerful commands that the Linu…
- 3Let’s continue to work on the script that prints the directory structure tree. At the end of the last exercise, our script was able to print all nested subdirectories and files under a parent direc…
- 4The script we completed in the last exercise could have been a one-line terminal command run inside the desired working directory: ls -R | grep ‘:$’ | sed -e ‘s/:$//‘ -e ‘s/[^-][^/]*//–/g’ -e ‘s…
- 5In this exercise, we will be adding script code to build a simple game where the users guess the name of a song when its lyrics are outputted to the terminal. You may be wondering, how do we load i…
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory