WEBVTT

00:00.480 --> 00:08.940
Windows power shelfs designers knew that they are given as many long command and parameter names and

00:08.940 --> 00:16.410
didn't want us to have to spend more time than necessary typing them all out to completion is one way

00:16.410 --> 00:18.470
to make your life easier.

00:18.480 --> 00:25.830
But Windows Power Shell also supports shortened command syntax through several techniques.

00:25.830 --> 00:34.860
LS This can be used instead of command names aliases are generally shorter although they are also frequently

00:34.860 --> 00:37.770
more cryptic and more difficult to read.

00:37.770 --> 00:42.870
For someone not familiar with them another technique is perimeter.

00:42.880 --> 00:52.620
Names can be made entirely for positional parameters instead parse well is the appropriate command line

00:52.620 --> 00:53.370
position.

00:53.460 --> 00:59.440
But this technique as I said already is a bit trickier and confusing.

00:59.460 --> 01:05.460
And another technique that old parameter names can be truncated or shortened.

01:05.460 --> 01:13.700
You have to type only enough for each parameter name for the shell to be able to understand it.

01:13.710 --> 01:21.570
For example the following two commands are functionally equal and get in their service and just the

01:21.900 --> 01:29.370
second version is obviously easier to type but it's also somewhat more cryptic and more difficult to

01:29.370 --> 01:29.960
read.

01:30.060 --> 01:34.500
Other note here instead of truncate intermittent parameter names.

01:34.590 --> 01:37.570
Consider use and type completion instead.

01:37.710 --> 01:44.970
If you've already typed enough of the parameter name for this shell to understand it you just have to

01:44.970 --> 01:47.320
press terp to complete the name.

01:47.340 --> 01:53.850
The complete parameter name will also be easier to read for someone else who is trying to understand

01:53.910 --> 02:02.700
or maintain your commands and it's best practice to use full command names full parameter names and

02:02.760 --> 02:05.120
names for all parameters.

02:05.130 --> 02:11.370
If you do this it makes your comments easier for other people to read and understand.
