SlideShare a Scribd company logo
The Shell Game, Part 1


          Kevin O'Brien
 Washtenaw Linux Users Group
    http://www.lugwash.org
What is a Shell?
“A shell is a program that provides the traditional,
text-only user interface for Linux and other Unix-
like operating systems. Its primary function is to
read commands that are typed into a console
(i.e., an all-text display mode) or terminal window
(an all-text window) in a GUI (graphical user
interface) and then execute (i.e., run) them.”
--http://www.linfo.org/shell.html
Why “Shell”?
●   At its most fundamental, the OS consists of a
    kernel, which is the heart of the OS
●   The kernel keeps track of different processes
    running, gives them CPU time as needed,
    handles interaction with peripheral devices,
    etc.
●   The Shell surrounds all of this, and creates a
    way to interact with it.
So what is a shell?
●   It is the basic way for a person to interact with
    a computer
●   This is done by typing in commands
●   If you open a terminal window, you are using
    the shell
●   If you cannot boot into a GUI interface, you
    can usually boot into a shell and fix things
Servers
●   Servers commonly do not even bother to
    install a GUI. Everything is done via the shell.
●   This saves on resources, since you do not
    have to devote RAM and CPU cycles to the
    GUI, and can instead devote them to serving
    files, or whatever.
Headless Servers
●   Sometimes a server is set up without a
    monitor even attached. This is called
    “Headless”.
●   Server administration is done via a terminal
    connection of some kind, commonly via ssh
ssh
●   Ssh stands for Secure Shell
●   This is the replacement for telnet, which was
    used in the old days
●   Telnet is not secure, that is why it was
    replaced
Server Administration
●   Pretty much all server administration in Linux
    or indeed any Unix-like operating system is
    done via the shell
●   This is not just because the shell saves on
    resources. It is also the case that the shell is
    more efficient, and more powerful, than any
    GUI.
Tip for new users
●   Buy a box of 3X5 index cards, and keep the
    box by your computer
●   Every time you find a useful command, write it
    down. You may want to use this command
    again at a later time.
●   Sometimes you will want to group related
    commands
Example Card – Fixing an Install
●   Here is a set of commands I put on one card
    to help me when I have a problem with an
    install on my Kubuntu machine
       –   Sudo dpkg --configure -a
       –   Sudo apt-get -f install
       –   Sudo fuser -vik /var/lib/dpkg/lock
Why you need to know this
●   Jaunty upgrade → No video!
●   No way to launch a GUI
●   But I could go into failsafe mode, and get a
    shell prompt
●   With the help of a command I found online, I
    got my video up and running again
Coming attractions
●   This is the first in a series of short
    presentations designed for the newcomer to
    Linux
●   In future installments we will look at choices
    among shells, techniques for the most
    common shell (bash), and some tips and tricks
    to help move you to being an expert

More Related Content

PDF
The Shell Game Part 2: What are your shell choices?
ODP
Multicore
PDF
ODP
Linux logging
PPTX
Containers - Cloud Phoenix March Meetup
ODP
Virtualization with qemu-kvm and libvirt on openSUSE 42.2
PDF
Introduction to Docker
The Shell Game Part 2: What are your shell choices?
Multicore
Linux logging
Containers - Cloud Phoenix March Meetup
Virtualization with qemu-kvm and libvirt on openSUSE 42.2
Introduction to Docker

What's hot (20)

PDF
The ps Command
PPT
Linux Backup System using rsync, tar, gzip
PPTX
Virtual Machine LAMP on Windows
PDF
Unix is my IDE
PDF
LUG - Install Fest 2008
PPTX
Introduction to Docker
DOCX
Linux server backup solution
ODP
Os Bernier
PDF
SELF 2014: PBI v10: Application Management Made Easy
PDF
PPTX
Making the Move to Linux from an Enterprise Perspective
ODP
Desktop Application In Linux
PPTX
Libusb
PDF
Docker 入門 Introduction to Docker
PDF
Using Nagios to monitor your WO systems
PPTX
Front end development gurant
PDF
Docker at CrowdTwist
PPT
An overview of OpenVZ virtualization technology
PPTX
Introduce to linux
The ps Command
Linux Backup System using rsync, tar, gzip
Virtual Machine LAMP on Windows
Unix is my IDE
LUG - Install Fest 2008
Introduction to Docker
Linux server backup solution
Os Bernier
SELF 2014: PBI v10: Application Management Made Easy
Making the Move to Linux from an Enterprise Perspective
Desktop Application In Linux
Libusb
Docker 入門 Introduction to Docker
Using Nagios to monitor your WO systems
Front end development gurant
Docker at CrowdTwist
An overview of OpenVZ virtualization technology
Introduce to linux
Ad

Similar to The Shell Game Part 1: What is a shell? (20)

ODP
Introduction to Shell script
PDF
Intro to operating_system
PPTX
Linux 开源操作系统发展新趋势
PDF
Adhocr T-dose 2012
ODP
The Deck by Phil Polstra GrrCON2012
PDF
Hacking and Forensics on the Go - 44CON 2012
PDF
Polstra 44con2012
PDF
Slash n: Technical Session 8 - Making Time - minute by minute - Janmejay Singh
PDF
Scale2013
PDF
MOE Ubuntu Desktop training
PDF
PDF
Linux Internals - Part II
PDF
Linux Systems: Getting started with setting up an Embedded platform
PDF
Linux systems - Linux Commands and Shell Scripting
PDF
Snap - the universal packaging format for linux distros
PPTX
LinuxTraining_3.pptx
PDF
Asiabsdcon2013
PDF
UCL All of the Things (MeetBSD California 2014 Lightning Talk)
PDF
How can OpenNebula fit your needs - OpenNebulaConf 2013
Introduction to Shell script
Intro to operating_system
Linux 开源操作系统发展新趋势
Adhocr T-dose 2012
The Deck by Phil Polstra GrrCON2012
Hacking and Forensics on the Go - 44CON 2012
Polstra 44con2012
Slash n: Technical Session 8 - Making Time - minute by minute - Janmejay Singh
Scale2013
MOE Ubuntu Desktop training
Linux Internals - Part II
Linux Systems: Getting started with setting up an Embedded platform
Linux systems - Linux Commands and Shell Scripting
Snap - the universal packaging format for linux distros
LinuxTraining_3.pptx
Asiabsdcon2013
UCL All of the Things (MeetBSD California 2014 Lightning Talk)
How can OpenNebula fit your needs - OpenNebulaConf 2013
Ad

More from Kevin OBrien (20)

PPTX
American icon pmi
ODP
Tls 1.3
ODP
Forward Secrecy
ODP
Diffie_Hellman-Merkle Key Exchange
ODP
Password best practices and the last pass hack
ODP
SSL certificates
ODP
Encryption basics
ODP
Passwords
PDF
Linux Directory Structure
PDF
Hardware Discovery Commands
PDF
Introduction to linux
PDF
Help, my computer is sluggish
PDF
Installing Software, Part 3: Command Line
PDF
Installing Software, Part 2: Package Managers
PDF
Installing Software, Part 1 - Repositories
PDF
Installing Linux: Partitioning and File System Considerations
PDF
The ifconfig Command
PDF
Find and Locate: Two Commands
PDF
The Shell Game Part 4: Bash Shortcuts
PDF
The Shell Game Part 3: Introduction to Bash
American icon pmi
Tls 1.3
Forward Secrecy
Diffie_Hellman-Merkle Key Exchange
Password best practices and the last pass hack
SSL certificates
Encryption basics
Passwords
Linux Directory Structure
Hardware Discovery Commands
Introduction to linux
Help, my computer is sluggish
Installing Software, Part 3: Command Line
Installing Software, Part 2: Package Managers
Installing Software, Part 1 - Repositories
Installing Linux: Partitioning and File System Considerations
The ifconfig Command
Find and Locate: Two Commands
The Shell Game Part 4: Bash Shortcuts
The Shell Game Part 3: Introduction to Bash

Recently uploaded (20)

PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
cuic standard and advanced reporting.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Cloud computing and distributed systems.
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Empathic Computing: Creating Shared Understanding
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
KodekX | Application Modernization Development
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Review of recent advances in non-invasive hemoglobin estimation
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
Machine learning based COVID-19 study performance prediction
Understanding_Digital_Forensics_Presentation.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
cuic standard and advanced reporting.pdf
Big Data Technologies - Introduction.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Cloud computing and distributed systems.
sap open course for s4hana steps from ECC to s4
Empathic Computing: Creating Shared Understanding
Mobile App Security Testing_ A Comprehensive Guide.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KodekX | Application Modernization Development
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Review of recent advances in non-invasive hemoglobin estimation

The Shell Game Part 1: What is a shell?

  • 1. The Shell Game, Part 1 Kevin O'Brien Washtenaw Linux Users Group http://www.lugwash.org
  • 2. What is a Shell? “A shell is a program that provides the traditional, text-only user interface for Linux and other Unix- like operating systems. Its primary function is to read commands that are typed into a console (i.e., an all-text display mode) or terminal window (an all-text window) in a GUI (graphical user interface) and then execute (i.e., run) them.” --http://www.linfo.org/shell.html
  • 3. Why “Shell”? ● At its most fundamental, the OS consists of a kernel, which is the heart of the OS ● The kernel keeps track of different processes running, gives them CPU time as needed, handles interaction with peripheral devices, etc. ● The Shell surrounds all of this, and creates a way to interact with it.
  • 4. So what is a shell? ● It is the basic way for a person to interact with a computer ● This is done by typing in commands ● If you open a terminal window, you are using the shell ● If you cannot boot into a GUI interface, you can usually boot into a shell and fix things
  • 5. Servers ● Servers commonly do not even bother to install a GUI. Everything is done via the shell. ● This saves on resources, since you do not have to devote RAM and CPU cycles to the GUI, and can instead devote them to serving files, or whatever.
  • 6. Headless Servers ● Sometimes a server is set up without a monitor even attached. This is called “Headless”. ● Server administration is done via a terminal connection of some kind, commonly via ssh
  • 7. ssh ● Ssh stands for Secure Shell ● This is the replacement for telnet, which was used in the old days ● Telnet is not secure, that is why it was replaced
  • 8. Server Administration ● Pretty much all server administration in Linux or indeed any Unix-like operating system is done via the shell ● This is not just because the shell saves on resources. It is also the case that the shell is more efficient, and more powerful, than any GUI.
  • 9. Tip for new users ● Buy a box of 3X5 index cards, and keep the box by your computer ● Every time you find a useful command, write it down. You may want to use this command again at a later time. ● Sometimes you will want to group related commands
  • 10. Example Card – Fixing an Install ● Here is a set of commands I put on one card to help me when I have a problem with an install on my Kubuntu machine – Sudo dpkg --configure -a – Sudo apt-get -f install – Sudo fuser -vik /var/lib/dpkg/lock
  • 11. Why you need to know this ● Jaunty upgrade → No video! ● No way to launch a GUI ● But I could go into failsafe mode, and get a shell prompt ● With the help of a command I found online, I got my video up and running again
  • 12. Coming attractions ● This is the first in a series of short presentations designed for the newcomer to Linux ● In future installments we will look at choices among shells, techniques for the most common shell (bash), and some tips and tricks to help move you to being an expert