File: c154.htm

package info (click to toggle)
powershell 0.9-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 492 kB
  • ctags: 339
  • sloc: ansic: 3,159; sh: 180; makefile: 104
file content (251 lines) | stat: -rw-r--r-- 4,938 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN">
<HTML
><HEAD
><TITLE
>Using PowerShell</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet"><LINK
REL="HOME"
TITLE="PowerShell User's Guide"
HREF="book1.htm"><LINK
REL="PREVIOUS"
TITLE="Final Steps"
HREF="x136.htm"><LINK
REL="NEXT"
TITLE="Advanced Usage"
HREF="x175.htm"></HEAD
><BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PowerShell User's Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x136.htm"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x175.htm"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="AEN154"
>Chapter 3. Using PowerShell</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="c154.htm#AEN157"
>Basic Usage</A
></DT
><DT
><A
HREF="x175.htm"
>Advanced Usage</A
></DT
><DT
><A
HREF="x240.htm"
>Command-line options</A
></DT
></DL
></DIV
><P
>    This section of the documentation deals with using PowerShell.
    It covers everything from the basic usage of the program to
    advanced configuration.</P
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN157"
>Basic Usage</A
></H1
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN159"
>Starting Programs</A
></H2
><P
>	    When you first start PowerShell, it creates a window with
	    a single notebook tab at the top, a menu bar, and a terminal
	    which should be running your default shell.  At this point,
	    PowerShell can function exactly like your ex-favorite :-)
	    terminal emulator.  While it is perfectly fine to use PowerShell
	    in this way, you are missing out on the main functionality of
	    the program - the ability to run many programs in a single window.
	</P
><P
>	    To start a new program, click on the File menu and choose one of
	    the programs listed there (you can change the programs listed here -
	    more on that later.)  For example, choose 'Lynx.'  A new tab should
	    appear at the top of the window with 'Lynx' in the label, and a 
	    new terminal should appear, running Lynx.  Try this with a few other
	    programs.
	</P
><P
>	    Another way to start new programs is to right-click on the terminal
	    window.  A popup menu should appear, which works exactly the same
	    way as the File menu.
	</P
><P
>	    To run an arbitrary program, choose "Run..." from the menu.  This
	    will bring up a dialog box where you can enter the program you wish
	    to run.  <I
CLASS="EMPHASIS"
>Make sure to include the full path</I
>.
	    That is, don't type <TT
CLASS="LITERAL"
>pine</TT
>, because that won't work.
	    Type <TT
CLASS="LITERAL"
>/usr/bin/pine</TT
>.
	</P
><P
>	    Now, before you start emailing me asking why I don't have keyboard
	    shortcuts for the programs, I'll explain here.  I'm a bit nervous
	    about adding this because I can see how they would conflict with
	    keystrokes for the programs running in the terminal.  They could
	    be user-customizeable, but they people would mess things up and
	    I would get tons of email from people asking "How come when I press
	    Control-X to save and exit in pico, Netscape opens?"  Rrggg...
	</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN169"
>Switching Between Programs</A
></H2
><P
>	    There are several ways to switch between programs in PowerShell.
	    The first, and most obvious, is to click on the notebook tab
	    of the terminal you want to switch to.  The second, and a little
	    bit less obvious, is to press Control-Tab.  This cycles through
	    all the open tabs.  The third is to press Control and then the
	    number of the tab you want to switch to (1-9 only, though.  Anything
	    after that and you can't use this method.)  For example, to
	    switch to the 3rd tab, press Control-3.
	</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN172"
>Renaming Tabs</A
></H2
><P
>	    Renaming tabs is easy.  Either choose "Rename Tab..." from the menu
	    or right-click on the notebook tab.  A dialog box will pop up
	    asking you what you want to rename the tab to.
	</P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x136.htm"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.htm"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x175.htm"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Final Steps</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Advanced Usage</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>