Shell Basics
Shell Basics
A look at :
● Introduction
● ICE Breaker
● UI - in depth
● GUI & CLI
● What is the shell
● Shell navigation
●
UI
User Interface
1. GUI - windows
2. CLI - unix (
3. Form-based interfaces - hospital form
4. Menu-based interfaces- ATM
5. Natural language interfaces - alexa, siri
1. Graphical User Interface
● A shell is a computer program that presents a CLI which allows you to control
your computer using commands entered with a keyboard instead of
controlling graphical user interfaces (GUIs) with a
mouse/keyboard/touchscreen combination.
● The shell makes your work less boring, you can automate those repetitive
tasks and leave you free to do more exciting things.
● The shell makes your work less error-prone. Your computer can do the same
thing a thousand times with no mistakes.
● The shell makes your work more reproducible since it keeps a history of your
work.
● etc
Hello Shell,
-Beta
How to access the shell
● #! (Shebang) - The first line of the script dictates the program will be
used to interpret the script. In the example above /bin/bash has been
used (but you can also use Perl, aw, tcl, Python and Tk instead)
● comment – The comment basically explains to the programmer
viewing the text what the script is for (the # tells bash to ignore what
appears after it.)
● echo command – Prints out the argument.
Writing a shell script
● Granting permission to Shell script - Each shell script must have the execute
permission
● Executing shell scripts - specify the path to the script file to run it
Why you need shell scripts
There are many reasons to go through the process of writing your own
scripts, and the number one reason is convenience. With shell scripts, you
can create your own commands and save time entering commands on a
case-by-case basis. You can effectively automate multiple commands.
Without scripts, you’d have to run these manually yourself each and every
time.
Resources