From the course: Learning Bash Scripting
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Challenge: Make a script that generates a system report - Bash Tutorial
From the course: Learning Bash Scripting
Challenge: Make a script that generates a system report
(upbeat music) - [Instructor] Let's take a moment to put together some of the things we've seen so far. Your challenge is to create a script that shows some information about the system it's running on. In your script, you should use some of the standard tools that Linux provides for finding out about the system. These could include df to find storage utilization, free to find out about memory, or any other tools that provide information you might be interested to see at a glance when you run your status script. Consider using tools like awk or sed to manipulate the output of commands if you're familiar with them. If you'd like to learn more about awk and sed, take a look at our courses that cover them. Use some of what you've learned about text formatting as well to make the output of the report organized and appealing. This is an opportunity to practice your skills and there's no right or wrong answer. This…
Contents
-
-
-
-
Understanding Bash script syntax5m 18s
-
(Locked)
Choosing a text editor for Bash scripting1m 33s
-
(Locked)
Displaying text with "echo"4m 26s
-
(Locked)
Working with variables5m 21s
-
(Locked)
Working with numbers8m 44s
-
(Locked)
Comparing values with test4m 59s
-
(Locked)
Comparing values with extended test3m 34s
-
(Locked)
Formatting and styling text output8m 13s
-
(Locked)
Formatting output with printf5m 6s
-
(Locked)
Working with arrays4m 25s
-
(Locked)
Challenge: Make a script that generates a system report1m 1s
-
(Locked)
Solution: Make a script that generates a system report1m 26s
-
-
-
-
-