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 18: Line 18:
===Open a terminal===
===Open a terminal===


* On Windows 7/8/8.1/10: click on the Start menu (the Windows logo in the lower left corner of the screen) or press the Windows key to open the Start menu, 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. (Alternately, you can just type <code>Powershell</code> without selecting the search box, and you'll immediately switch to the search interface.)
* On Windows Vista/7/8/8.1/10: click on the Start menu (the Windows logo in the lower left corner of the screen) or press the Windows key to open the Start menu, 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. (Alternately, you can just type <code>Powershell</code> without selecting the search box, and you'll immediately switch to the search interface.)
* If you are using using Windows XP, you probably don't have <code>PowerShell</code> installed. If you have XP, find a mentor to have them help you install <code>PowerShell</code>.


===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, which should be your home directory (something like C:/Users/YOURNAME)
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.
If you want to get back to your home directory, you can do:
<pre>cd Users</pre>
<pre>cd YOURNAME</pre>
where YOURNAME is the name of your User directory.
One helpful tip is that you can start typing a directory, then hit the <code>TAB</code> key and the terminal will autocomplete it.


===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 mentor.
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 90: Line 81:
[[File:Champagne.png|100px]][[File:Party.png|125px]]
[[File:Champagne.png|100px]][[File:Party.png|125px]]


[[Category:CDSW]][[Category:Shared Pages]]
[[Category:CDSW]]
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see CommunityData:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)