SlideShare a Scribd company logo
1 of 20
Download to read offline
Basic Introduction to
the Command Line
Tech 101 Workshop
CDMD Fall 2013
Why Should I Care?
Give your computer(*) direct commands
Be in control
Children use pictures to control their
computers, grown ups learn to read and
use words. (this is a joke.)
(*) Also remote computers, VMs, & ser vers.
What is the Command
Line?
A place to enter direct commands.
Shell & Terminal Emulators
In OSX it is accessed through Terminal
In The Beginning Was

The Command Line
Console
Command Line
Prompt
Let’s Do It!
Open a terminal on your
machines
Navigating the Terminal
Look Ma! No mouse.
!

Use left and right
arrows to move the
cursor
Use Up and Down
arrows to retrieve
previous commands
Basic Commands
ls = list. (dir in DOS)
pwd = print working directory
cd = change directory
man = manual
clear = clear screen
control-c = exits command if frozen
What You’ll See: ls
ls shows files and folders
files have an extension (.exe, .txt. .html)
Folders do not.
What You’ll See: cd
cd changes the directory
cd .. goes up one level
cd $directoryname goes to that
directory
What You’ll See: pwd

pwd: shows you where you are
Exercise:
use ls, cd, and pwd to explore your machine.
More Commands
touch = touch $newfilename (creates file w/o
editing)
nano = nano $filename (opens file in nano
editor)
edit = edit $filename (edits file in default
editor)
rm = rm $filename (deletes file. CAREFUL)
Exercise: Make a File
The Touch Command
Try This:
use touch to create a file
edit the file with nano
verify the changes using edit
delete the file using rm
/tech101basic

Let’s Take a Break
Part Two: Tutorial
Go through a self paced tutorial to try new stuff.
Pick a Tutorial
Tutorial on Manipulating your Mac’s Appearance
http:/
/bit.ly/tech101osx
http:/
/www.wikihow.com/Customize-Your-Mac-Using-theTerminal
More Advanced Linux Tutorial
http:/
/bit.ly/tech101adv
http:/
/linuxcommand.org/learning_the_shell.php
Very Basic Tutorial Repeating First Lessons
http:/
/bit.ly/tech101basic
http:/
/blog.teamtreehouse.com/introduction-to-the-mac-os-xcommand-line
/tech101basic

Let’s Take a Break
Part 3: Hardware
Hacking
Use the command line to own your machines.

More Related Content

Viewers also liked (7)

032116
032116032116
032116
 
04142016
0414201604142016
04142016
 
Social Media - What do I do now?
Social Media - What do I do now?Social Media - What do I do now?
Social Media - What do I do now?
 
04182016
0418201604182016
04182016
 
04252016
0425201604252016
04252016
 
04062016
0406201604062016
04062016
 
040416
040416040416
040416
 

Similar to Shell tutorial

11 unix osx_commands
11 unix osx_commands11 unix osx_commands
11 unix osx_commandsMacinfosoft
 
21 command prompt tricks and hacks
21 command prompt tricks and hacks21 command prompt tricks and hacks
21 command prompt tricks and hacksAbdullah Khosa
 
Practical work 3. Sofware OS. Kind of sofware (1).pptx
Practical work 3. Sofware OS. Kind of sofware (1).pptxPractical work 3. Sofware OS. Kind of sofware (1).pptx
Practical work 3. Sofware OS. Kind of sofware (1).pptxssuserd2a022
 
Windows CMD commands.pdf
Windows CMD commands.pdfWindows CMD commands.pdf
Windows CMD commands.pdfGurau Catalin
 
WEEK 1 - LECTURE 1 ITC LAB.pptx
WEEK 1 - LECTURE 1 ITC LAB.pptxWEEK 1 - LECTURE 1 ITC LAB.pptx
WEEK 1 - LECTURE 1 ITC LAB.pptxSaadAhmed949595
 
LEARNING MS DOS BASIC
LEARNING MS DOS BASICLEARNING MS DOS BASIC
LEARNING MS DOS BASICmaccarthy104
 
What is cmd windows command prompt
What is cmd windows command promptWhat is cmd windows command prompt
What is cmd windows command promptSubrata Das
 
Command prompt presentation
Command prompt presentationCommand prompt presentation
Command prompt presentationMuhammad Taj
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptPDhivyabharathi2
 
Batch file programming
Batch file programmingBatch file programming
Batch file programmingalan moreno
 
Batch file-programming
Batch file-programmingBatch file-programming
Batch file-programmingjamilur
 
Code tacoma command_line
Code tacoma command_lineCode tacoma command_line
Code tacoma command_lineAndrea Urban
 
Batch File Programming
Batch File ProgrammingBatch File Programming
Batch File ProgrammingFrz Khan
 
Windows 7 command prompt commands
Windows 7 command prompt commandsWindows 7 command prompt commands
Windows 7 command prompt commandsAbdullah Khosa
 
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:wensheng wei
 
the productive programer: mechanics
the productive programer: mechanicsthe productive programer: mechanics
the productive programer: mechanicselliando dias
 

Similar to Shell tutorial (20)

11 unix osx_commands
11 unix osx_commands11 unix osx_commands
11 unix osx_commands
 
21 command prompt tricks and hacks
21 command prompt tricks and hacks21 command prompt tricks and hacks
21 command prompt tricks and hacks
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
 
Practical work 3. Sofware OS. Kind of sofware (1).pptx
Practical work 3. Sofware OS. Kind of sofware (1).pptxPractical work 3. Sofware OS. Kind of sofware (1).pptx
Practical work 3. Sofware OS. Kind of sofware (1).pptx
 
Windows CMD commands.pdf
Windows CMD commands.pdfWindows CMD commands.pdf
Windows CMD commands.pdf
 
WEEK 1 - LECTURE 1 ITC LAB.pptx
WEEK 1 - LECTURE 1 ITC LAB.pptxWEEK 1 - LECTURE 1 ITC LAB.pptx
WEEK 1 - LECTURE 1 ITC LAB.pptx
 
LEARNING MS DOS BASIC
LEARNING MS DOS BASICLEARNING MS DOS BASIC
LEARNING MS DOS BASIC
 
What is cmd windows command prompt
What is cmd windows command promptWhat is cmd windows command prompt
What is cmd windows command prompt
 
Command prompt presentation
Command prompt presentationCommand prompt presentation
Command prompt presentation
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .ppt
 
Batch file programming
Batch file programmingBatch file programming
Batch file programming
 
Batch file-programming
Batch file-programmingBatch file-programming
Batch file-programming
 
ppt on cmd cammand
ppt on cmd cammandppt on cmd cammand
ppt on cmd cammand
 
Introduction to ms dos
Introduction to ms dosIntroduction to ms dos
Introduction to ms dos
 
Code tacoma command_line
Code tacoma command_lineCode tacoma command_line
Code tacoma command_line
 
Batch File Programming
Batch File ProgrammingBatch File Programming
Batch File Programming
 
Windows 7 command prompt commands
Windows 7 command prompt commandsWindows 7 command prompt commands
Windows 7 command prompt commands
 
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:
 
PPT4-Windows CLI.pptx
PPT4-Windows CLI.pptxPPT4-Windows CLI.pptx
PPT4-Windows CLI.pptx
 
the productive programer: mechanics
the productive programer: mechanicsthe productive programer: mechanics
the productive programer: mechanics
 

More from Nicholas Schiller (20)

03072016
0307201603072016
03072016
 
Esu815x0 02282016
Esu815x0 02282016Esu815x0 02282016
Esu815x0 02282016
 
02222016
0222201602222016
02222016
 
020816
020816020816
020816
 
02032016
0203201602032016
02032016
 
02012016
0201201602012016
02012016
 
01272016
0127201601272016
01272016
 
01222016
0122201601222016
01222016
 
01132016
0113201601132016
01132016
 
12 01-ogp
12 01-ogp12 01-ogp
12 01-ogp
 
1117 ethics
1117 ethics1117 ethics
1117 ethics
 
1027 googlization
1027 googlization1027 googlization
1027 googlization
 
11 03-writing-seo-text
11 03-writing-seo-text11 03-writing-seo-text
11 03-writing-seo-text
 
1006 kuhlthau
1006 kuhlthau1006 kuhlthau
1006 kuhlthau
 
0929 databases
0929 databases0929 databases
0929 databases
 
0922 overrated
0922 overrated0922 overrated
0922 overrated
 
0908 chapter6
0908 chapter60908 chapter6
0908 chapter6
 
0908 chapter5
0908 chapter50908 chapter5
0908 chapter5
 
0908 chapter4
0908 chapter40908 chapter4
0908 chapter4
 
0901 chapter3
0901 chapter30901 chapter3
0901 chapter3
 

Recently uploaded

Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfFIDO Alliance
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandIES VE
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...FIDO Alliance
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...ScyllaDB
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data SciencePaolo Missier
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTopCSSGallery
 
JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuidePixlogix Infotech
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptxFIDO Alliance
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Skynet Technologies
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxFIDO Alliance
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Hiroshi SHIBATA
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...ScyllaDB
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfFIDO Alliance
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGDSC PJATK
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfSrushith Repakula
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingScyllaDB
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?Mark Billinghurst
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...FIDO Alliance
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceSamy Fodil
 

Recently uploaded (20)

Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development Companies
 
JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate Guide
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 

Shell tutorial

  • 1. Basic Introduction to the Command Line Tech 101 Workshop CDMD Fall 2013
  • 2. Why Should I Care? Give your computer(*) direct commands Be in control Children use pictures to control their computers, grown ups learn to read and use words. (this is a joke.) (*) Also remote computers, VMs, & ser vers.
  • 3. What is the Command Line? A place to enter direct commands. Shell & Terminal Emulators In OSX it is accessed through Terminal
  • 4. In The Beginning Was The Command Line
  • 6. Let’s Do It! Open a terminal on your machines
  • 7. Navigating the Terminal Look Ma! No mouse. ! Use left and right arrows to move the cursor Use Up and Down arrows to retrieve previous commands
  • 8. Basic Commands ls = list. (dir in DOS) pwd = print working directory cd = change directory man = manual clear = clear screen control-c = exits command if frozen
  • 9. What You’ll See: ls ls shows files and folders files have an extension (.exe, .txt. .html) Folders do not.
  • 10. What You’ll See: cd cd changes the directory cd .. goes up one level cd $directoryname goes to that directory
  • 11. What You’ll See: pwd pwd: shows you where you are
  • 12. Exercise: use ls, cd, and pwd to explore your machine.
  • 13. More Commands touch = touch $newfilename (creates file w/o editing) nano = nano $filename (opens file in nano editor) edit = edit $filename (edits file in default editor) rm = rm $filename (deletes file. CAREFUL)
  • 14. Exercise: Make a File The Touch Command
  • 15. Try This: use touch to create a file edit the file with nano verify the changes using edit delete the file using rm
  • 17. Part Two: Tutorial Go through a self paced tutorial to try new stuff.
  • 18. Pick a Tutorial Tutorial on Manipulating your Mac’s Appearance http:/ /bit.ly/tech101osx http:/ /www.wikihow.com/Customize-Your-Mac-Using-theTerminal More Advanced Linux Tutorial http:/ /bit.ly/tech101adv http:/ /linuxcommand.org/learning_the_shell.php Very Basic Tutorial Repeating First Lessons http:/ /bit.ly/tech101basic http:/ /blog.teamtreehouse.com/introduction-to-the-mac-os-xcommand-line
  • 20. Part 3: Hardware Hacking Use the command line to own your machines.