Functions are a powerful building block for writing code. This tutorial demonstrates how you can use a function in Bash to gather system information. This particular program captures information about a computer using the lsusb and tree command line utilities.