SlideShare une entreprise Scribd logo
1  sur  20
Télécharger pour lire hors ligne
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.

Contenu connexe

En vedette (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
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Dernier

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 

Dernier (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

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.