SlideShare a Scribd company logo
The “cd” (Change Directory)
Command
Mac Terminal Tutorial
“ls” to list all the contents of the current directory so
that we can see where we want to change
directory into.
“cd” (Change Directory) into the Desktop directory by typing
“cd Desktop”. This works for any directory that’s within the
current directory. SYNTAX: cd dirName
To Change Directory (cd) into a directory that has a
space in its name, place the folder’s (directory’s)
name in quotation marks (“folder name”). This
makes it so that the “cd” command sees the two
words as one argument.
In this example I first attempted to Change Directory by simply typing my folder. It
didn’t work because there is no directory (folder) with the name of “my”. So it threw an
error. I corrected this by putting the “directory name” in quotation marks. I could’ve
also used the escape character  before the space to tell the program to ignore space
Typing “..” after a filesystem command
references the “Parent Directory”. What
we are saying here is…
Change Directory into the “Parent
Directory”.
Parent Directory - the directory our
working directory is in.
To teach the next slide I need to first show the
order of directories we’ll be working with.
“my folder” is in the “Desktop” directory…
“Tutorials” is in the “my folder” directory..
In this Command what I was wanting to do was to change
into the “Tutorials” directory which is a “sub-directory” of
the “my folder” directory -- which is a “sub-directory” of the
“Desktop” directory.
“cd” dirName/subDirName
If we want to get back to the “parent’s parent
directory” we just change directory (cd) and
provide it the argument of “../..”. You may
remember that “..” changes our directory to the
parent directory….so this is just an extension of
that concept.
A useful shorthand for Changing Directory into the
“home (user)” directory is to simply type “cd” all by
itself.
You can also provide “cd” with a tilda “~” to
change to the “home” directory.
2 ways, same thing.
Root Directory - The directory which has no parent.
To change into the root directory from anywhere, provide “cd”
with an argument of “/”.
“cd /”
Absolute Path:
Wherever you are in the filesystem, you can always provide
the “cd” command with the “absolute file path” to the directory
you’re wanting to change into.
Absolute file path HAS to start with “root” - /
Thanks For Watching.
Please Visit:
www.HatBoySoftware.com
Jake Corn - JakeCornCodes@gmail.com

More Related Content

What's hot

Vi editor in linux
Vi editor in linuxVi editor in linux
Vi editor in linux
Bhumivaghasiya
 
Basic Crud In Django
Basic Crud In DjangoBasic Crud In Django
Basic Crud In Django
mcantelon
 
Grep - A powerful search utility
Grep - A powerful search utilityGrep - A powerful search utility
Grep - A powerful search utility
Nirajan Pant
 
Course 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild CardsCourse 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild Cards
Ahmed El-Arabawy
 
Fundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database UsersFundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database Users
Mustafa Kamel Mohammadi
 
RAID and LVM
RAID and LVMRAID and LVM
RAID and LVM
Mohitgupta8560
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
Meqdad Darweesh
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dos
Nargiskhan786
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Modelchomas kandar
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
shravan saini
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
Manav Prasad
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
Sanjeev Kumar
 
Data file handling in python introduction,opening & closing files
Data file handling in python introduction,opening & closing filesData file handling in python introduction,opening & closing files
Data file handling in python introduction,opening & closing files
keeeerty
 
Linux and DNS Server
Linux and DNS ServerLinux and DNS Server
Linux and DNS Server
Prabhakar Thota
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
Harshita Yadav
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
Harish R
 
Textbox n label
Textbox n labelTextbox n label
Textbox n label
chauhankapil
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Script
sbmguys
 

What's hot (20)

Vi editor in linux
Vi editor in linuxVi editor in linux
Vi editor in linux
 
Basic Crud In Django
Basic Crud In DjangoBasic Crud In Django
Basic Crud In Django
 
Grep - A powerful search utility
Grep - A powerful search utilityGrep - A powerful search utility
Grep - A powerful search utility
 
Course 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild CardsCourse 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild Cards
 
Fundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database UsersFundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database Users
 
RAID and LVM
RAID and LVMRAID and LVM
RAID and LVM
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dos
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
Sorting arrays in PHP
Sorting arrays in PHPSorting arrays in PHP
Sorting arrays in PHP
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Data file handling in python introduction,opening & closing files
Data file handling in python introduction,opening & closing filesData file handling in python introduction,opening & closing files
Data file handling in python introduction,opening & closing files
 
Linux and DNS Server
Linux and DNS ServerLinux and DNS Server
Linux and DNS Server
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
 
Textbox n label
Textbox n labelTextbox n label
Textbox n label
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Script
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 

Viewers also liked

Orientacion profesiografica
Orientacion profesiograficaOrientacion profesiografica
Orientacion profesiografica
kareli777
 
CV-Saleem Vayani photo 4-Nov-2016
CV-Saleem Vayani photo 4-Nov-2016CV-Saleem Vayani photo 4-Nov-2016
CV-Saleem Vayani photo 4-Nov-2016Saleem Vayani
 
Tarea 7
Tarea 7Tarea 7
Tekelec 870-0774-08
Tekelec 870-0774-08Tekelec 870-0774-08
Tekelec 870-0774-08
savomir
 
Uros - Aldeias flutuantes
Uros  - Aldeias flutuantesUros  - Aldeias flutuantes
Uros - Aldeias flutuantesJoão Couto
 
Mapa conceptual prosocialidad
Mapa conceptual prosocialidadMapa conceptual prosocialidad
Mapa conceptual prosocialidad
David Ortiz
 
alfabetización informativa
alfabetización informativaalfabetización informativa
alfabetización informativa
Chillons Reyes
 
Cajita de cambio
Cajita de cambioCajita de cambio
Cajita de cambio
EDMUNDO MARROQUIN SOEL
 
Sistema Óseo
Sistema ÓseoSistema Óseo
Sistema Óseo
Liss858
 
Inmarsat Press Final
Inmarsat Press FinalInmarsat Press Final
Inmarsat Press Final
flaviosartori
 
O Boticário - Túnel Natal
O Boticário - Túnel NatalO Boticário - Túnel Natal
O Boticário - Túnel NatalGrupo_OM
 

Viewers also liked (20)

Orientacion profesiografica
Orientacion profesiograficaOrientacion profesiografica
Orientacion profesiografica
 
CV-Saleem Vayani photo 4-Nov-2016
CV-Saleem Vayani photo 4-Nov-2016CV-Saleem Vayani photo 4-Nov-2016
CV-Saleem Vayani photo 4-Nov-2016
 
Tarea 7
Tarea 7Tarea 7
Tarea 7
 
Tekelec 870-0774-08
Tekelec 870-0774-08Tekelec 870-0774-08
Tekelec 870-0774-08
 
Uros - Aldeias flutuantes
Uros  - Aldeias flutuantesUros  - Aldeias flutuantes
Uros - Aldeias flutuantes
 
Mapa conceptual prosocialidad
Mapa conceptual prosocialidadMapa conceptual prosocialidad
Mapa conceptual prosocialidad
 
alfabetización informativa
alfabetización informativaalfabetización informativa
alfabetización informativa
 
Cajita de cambio
Cajita de cambioCajita de cambio
Cajita de cambio
 
Sistema Óseo
Sistema ÓseoSistema Óseo
Sistema Óseo
 
Inmarsat Press Final
Inmarsat Press FinalInmarsat Press Final
Inmarsat Press Final
 
Compu
CompuCompu
Compu
 
Test
TestTest
Test
 
byblosbank
byblosbankbyblosbank
byblosbank
 
Noticia de febrero
Noticia de febrero Noticia de febrero
Noticia de febrero
 
BALKANSKA CHERGA
BALKANSKA CHERGABALKANSKA CHERGA
BALKANSKA CHERGA
 
Img 0001
Img 0001Img 0001
Img 0001
 
DPOLegal
DPOLegalDPOLegal
DPOLegal
 
Trasfondo amarillo-1
Trasfondo amarillo-1Trasfondo amarillo-1
Trasfondo amarillo-1
 
Anbefaling fra ProInvent
Anbefaling fra ProInventAnbefaling fra ProInvent
Anbefaling fra ProInvent
 
O Boticário - Túnel Natal
O Boticário - Túnel NatalO Boticário - Túnel Natal
O Boticário - Túnel Natal
 

Similar to cd - The Change Directory Command

Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
Dheeraj Nambiar
 
LinuxLabBasics.ppt
LinuxLabBasics.pptLinuxLabBasics.ppt
LinuxLabBasics.ppt
CharuJain396881
 
Linux Commands.pptx
Linux Commands.pptxLinux Commands.pptx
Linux Commands.pptx
MuhammadYasirKhan42
 
unix_commands.ppt
unix_commands.pptunix_commands.ppt
unix_commands.ppt
SahilGandhi72
 
Directory Commands - R.D.Sivakumar
Directory Commands - R.D.SivakumarDirectory Commands - R.D.Sivakumar
Directory Commands - R.D.Sivakumar
Sivakumar R D .
 
intro unix/linux 07
intro unix/linux 07intro unix/linux 07
intro unix/linux 07
duquoi
 
Linux cheat sheet
Linux cheat sheetLinux cheat sheet
Linux cheat sheet
Dimitris Kyrgiafinis
 
Basics of UNIX Commands
Basics of UNIX CommandsBasics of UNIX Commands
Basics of UNIX Commands
Subra Das
 
Part 2
Part 2Part 2
Part 2
Ahmed Hesham
 
Basic shell programs assignment 1_solution_manual
Basic shell programs assignment 1_solution_manualBasic shell programs assignment 1_solution_manual
Basic shell programs assignment 1_solution_manual
Kuntal Bhowmick
 
Command Line Tools
Command Line ToolsCommand Line Tools
Command Line Tools
David Harris
 
Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands
Ahmed El-Arabawy
 
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS
 
linux commands.pdf
linux commands.pdflinux commands.pdf
linux commands.pdf
amitkamble79
 
Directory Management in Unix
 Directory Management in Unix Directory Management in Unix
Directory Management in Unix
Vpmv
 
Linux[122-150].pdf
Linux[122-150].pdfLinux[122-150].pdf
Linux[122-150].pdf
ZINEBAGOURRAM1
 
Linux - Directory commands
Linux - Directory commandsLinux - Directory commands
Linux - Directory commands
joesofi
 
Linux_Commands.pdf
Linux_Commands.pdfLinux_Commands.pdf
Linux_Commands.pdf
MarsMox
 

Similar to cd - The Change Directory Command (20)

Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
LinuxLabBasics.ppt
LinuxLabBasics.pptLinuxLabBasics.ppt
LinuxLabBasics.ppt
 
Linux Commands.pptx
Linux Commands.pptxLinux Commands.pptx
Linux Commands.pptx
 
unix_commands.ppt
unix_commands.pptunix_commands.ppt
unix_commands.ppt
 
Directory Commands - R.D.Sivakumar
Directory Commands - R.D.SivakumarDirectory Commands - R.D.Sivakumar
Directory Commands - R.D.Sivakumar
 
intro unix/linux 07
intro unix/linux 07intro unix/linux 07
intro unix/linux 07
 
Linux
LinuxLinux
Linux
 
Linux cheat sheet
Linux cheat sheetLinux cheat sheet
Linux cheat sheet
 
Basics of UNIX Commands
Basics of UNIX CommandsBasics of UNIX Commands
Basics of UNIX Commands
 
Part 2
Part 2Part 2
Part 2
 
Basic shell programs assignment 1_solution_manual
Basic shell programs assignment 1_solution_manualBasic shell programs assignment 1_solution_manual
Basic shell programs assignment 1_solution_manual
 
Command Line Tools
Command Line ToolsCommand Line Tools
Command Line Tools
 
Unix Basics For Testers
Unix Basics For TestersUnix Basics For Testers
Unix Basics For Testers
 
Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands
 
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
 
linux commands.pdf
linux commands.pdflinux commands.pdf
linux commands.pdf
 
Directory Management in Unix
 Directory Management in Unix Directory Management in Unix
Directory Management in Unix
 
Linux[122-150].pdf
Linux[122-150].pdfLinux[122-150].pdf
Linux[122-150].pdf
 
Linux - Directory commands
Linux - Directory commandsLinux - Directory commands
Linux - Directory commands
 
Linux_Commands.pdf
Linux_Commands.pdfLinux_Commands.pdf
Linux_Commands.pdf
 

Recently uploaded

Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
e20449
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Jay Das
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
RISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent EnterpriseRISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent Enterprise
Srikant77
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
kalichargn70th171
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 

Recently uploaded (20)

Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Graphic Design Crash Course for beginners
Graphic Design Crash Course for beginnersGraphic Design Crash Course for beginners
Graphic Design Crash Course for beginners
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
RISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent EnterpriseRISE with SAP and Journey to the Intelligent Enterprise
RISE with SAP and Journey to the Intelligent Enterprise
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 

cd - The Change Directory Command

  • 1. The “cd” (Change Directory) Command Mac Terminal Tutorial
  • 2.
  • 3. “ls” to list all the contents of the current directory so that we can see where we want to change directory into.
  • 4. “cd” (Change Directory) into the Desktop directory by typing “cd Desktop”. This works for any directory that’s within the current directory. SYNTAX: cd dirName
  • 5. To Change Directory (cd) into a directory that has a space in its name, place the folder’s (directory’s) name in quotation marks (“folder name”). This makes it so that the “cd” command sees the two words as one argument.
  • 6. In this example I first attempted to Change Directory by simply typing my folder. It didn’t work because there is no directory (folder) with the name of “my”. So it threw an error. I corrected this by putting the “directory name” in quotation marks. I could’ve also used the escape character before the space to tell the program to ignore space
  • 7. Typing “..” after a filesystem command references the “Parent Directory”. What we are saying here is… Change Directory into the “Parent Directory”. Parent Directory - the directory our working directory is in.
  • 8. To teach the next slide I need to first show the order of directories we’ll be working with. “my folder” is in the “Desktop” directory… “Tutorials” is in the “my folder” directory..
  • 9. In this Command what I was wanting to do was to change into the “Tutorials” directory which is a “sub-directory” of the “my folder” directory -- which is a “sub-directory” of the “Desktop” directory. “cd” dirName/subDirName
  • 10. If we want to get back to the “parent’s parent directory” we just change directory (cd) and provide it the argument of “../..”. You may remember that “..” changes our directory to the parent directory….so this is just an extension of that concept.
  • 11. A useful shorthand for Changing Directory into the “home (user)” directory is to simply type “cd” all by itself.
  • 12. You can also provide “cd” with a tilda “~” to change to the “home” directory. 2 ways, same thing.
  • 13. Root Directory - The directory which has no parent. To change into the root directory from anywhere, provide “cd” with an argument of “/”. “cd /”
  • 14. Absolute Path: Wherever you are in the filesystem, you can always provide the “cd” command with the “absolute file path” to the directory you’re wanting to change into. Absolute file path HAS to start with “root” - /
  • 15. Thanks For Watching. Please Visit: www.HatBoySoftware.com Jake Corn - JakeCornCodes@gmail.com