Editing Windows terminal navigation
From CommunityData
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 7: | Line 7: | ||
We often navigate the filesystem graphically by clicking on graphical folders. We can do the exact same navigation from the terminal. | We often navigate the filesystem graphically by clicking on graphical folders. We can do the exact same navigation from the terminal. | ||
There are two commands that we'll be using in | There are two commands that we'll be using in a terminal to navigate the filesystem on your computer: | ||
* <code>ls</code> | * <code>ls</code> in PowerShell; <code>dir</code> in <code>cmd.exe</code> | ||
* <code>cd</code> | * <code>cd</code> | ||
<code>ls</code> | <code>ls</code> (<code>dir</code>) lists the contents of a directory.<br /> | ||
<code>cd</code> moves you into a new directory (it stands for " | <code>cd</code> moves you into a new directory (it stands for "change directory"). | ||
<b>Let's practice using these commands!</b> | <b>Let's practice using these commands!</b> | ||
Line 18: | Line 18: | ||
===Open a terminal=== | ===Open a terminal=== | ||
* On Windows 7/8/8.1 | * On Windows Vista/7/8/8.1: click on the Start menu (the Windows logo in the lower left of the screen), type <code>PowerShell</code> into the Search field directly above the Start menu button, and click on "PowerShell" in the search results above the Search field. | ||
* On Windows XP: click on the Start menu (the Windows logo in the lower left of the screen), click on "Run...", type <code>cmd</code> into the text box, and hit enter. | |||
===Practice using <code>ls</code> and <code>cd</code>=== | ===Practice using <code>ls</code> and <code>cd</code>=== | ||
Line 25: | Line 26: | ||
<pre>ls</pre> | <pre>ls</pre> | ||
This lists all the files in your current directory | This lists all the files in your current directory. | ||
<br /> | <br /> | ||
Line 56: | Line 57: | ||
<pre>ls</pre> | <pre>ls</pre> | ||
This lists the contents of the root directory, confirming where you are. | This lists the contents of the root directory, confirming where you are. | ||
===Tips=== | ===Tips=== | ||
Line 75: | Line 66: | ||
===Check your understanding=== | ===Check your understanding=== | ||
Answer these questions. Experiment at the terminal prompt if you need to! If you aren't sure about an answer, ask a | Answer these questions. Experiment at the terminal prompt if you need to! If you aren't sure about an answer, ask a helper. | ||
# What directory are you in after starting a new terminal prompt? | # What directory are you in after starting a new terminal prompt? | ||
Line 89: | Line 80: | ||
[[File:Champagne.png|100px]][[File:Party.png|125px]] | [[File:Champagne.png|100px]][[File:Party.png|125px]] | ||