In this lab, I explored how the Bash shell lets me interact with a computer’s operating system by entering commands. I focused on how commands receive input and return either output or error messages.
I practiced using the echo
command to see how simple strings can be displayed as output.
I also used the expr
command to perform basic arithmetic operations directly in the shell.
These exercises helped me build a better understanding of how communication between the user and the OS works through the shell.
To begin, I used the echo
command to generate output. This showed me how to display custom messages in the terminal.
Then, I used the expr
command to perform simple math calculations, such as addition and multiplication, right from the shell.
I also used the clear
command to clean up the terminal screen when things got cluttered.
Finally, I experimented with combining these commands and testing how the shell handles input and displays output or errors.
This lab helped me get more comfortable with:
echo
to display output in the terminalexpr
clear
Most importantly, I learned to recognize the shell’s responses and how to adjust when I see error messages. These foundational skills are crucial for more advanced Linux work in cybersecurity.