Lab / Beginner scripting
Introduction to Bash Scripting
My home-lab notes
Based on my October 4, 2026 project records. These notes distinguish reported results from captured output and later explanatory examples; they are not new checks of the servers.
Goal
I wanted to learn how to create a small Bash script in nano, save it, and run the file from the terminal.
What I did
I opened a script in nano, entered a small set of shell commands, and saved the file. This introduced the difference between editing a buffer and writing a file to disk.
I worked through locating and executing the script, then confirmed that the original script ran successfully. The exact body and every execution command were not retained.
The later explanatory record contrasts passing a file to Bash with making it executable and running it by its local path. Those examples explain the workflow; they are not the original script or a confirmed diagnosis of an earlier typo.
Result
I confirmed that my original beginner Bash script ran successfully after creating it in nano and working through terminal execution.
Evidence & limits
The September 30 conversation confirms success. The script body and complete execution history are not available in the detailed record.
Its sample greeting script, execution methods, and syntax checks are labeled reconstructions or optional checks. No fabricated terminal output or larger automation claim is substituted for the missing original file.
What I learned
I practiced terminal editing, saving, and locating a script before running it.
I began learning the relationship between script paths, an interpreter, and executable permissions without treating this exercise as larger automation work.
Skills & tools: Bash / nano / Linux paths / Introductory scripting