Anonymous user
Windows terminal navigation: Difference between revisions
→Practice navigating from the terminal: Changed dir to ls, clarified the structure of the filesystem, and added notes about using PowerShell instead of cmd.exe.
imported>Mako (created a shared/common page from Boston Python Workshop 8/Friday/Windows terminal navigation) |
imported>Ben zen (→Practice navigating from the terminal: Changed dir to ls, clarified the structure of the filesystem, and added notes about using PowerShell instead of cmd.exe.) |
||
Line 3:
== Practice navigating from the terminal ==
The filesystem on your computer is like a tree made up of folders (also called "directories") and files. The filesystem is divided between drives, each named with a letter; the main drive has a root directory called <tt>
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 a terminal to navigate the filesystem on your computer:
* <code>ls</code> in PowerShell; <code>dir</code> in <code>cmd.exe</code>
* <code>cd</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 "change directory").
Line 18:
===Open a terminal===
* On Windows Vista
* 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>
Type each of these commands and hit enter:
<pre>
This lists all the files in your current directory.
Line 35:
<br />
<pre>
This lists the contents of the <code>C:\</code> directory.
Line 45:
<br />
<pre>
You should see the names of all the files and directories in <code>C:\Users</code>.
Line 55:
<br />
<pre>
This lists the contents of the root directory, confirming where you are.
Line 77:
===Success!===
You've practiced using <code>
[[File:Champagne.png|100px]][[File:Party.png|125px]]
|