1
00:00:04,930 --> 00:00:11,530
You might notice that we entered Cube Style Command multiple times, and in my opinion such command

2
00:00:11,530 --> 00:00:18,880
is relatively long and we are able to create Alias for such command in order to save some time in the

3
00:00:18,880 --> 00:00:19,510
future.

4
00:00:19,510 --> 00:00:27,430
And we could alias cube style command to just single letter K and afterwards we will enter such commands

5
00:00:27,430 --> 00:00:29,210
as K get put.

6
00:00:29,230 --> 00:00:34,660
But now if I enter such command, I'll get the command not found error because I have not yet created

7
00:00:34,660 --> 00:00:38,770
any aliases on Linux like operating systems.

8
00:00:38,770 --> 00:00:43,210
You could very easily create Alias by entering command alias.

9
00:00:44,460 --> 00:00:50,920
Next will be alias for the command then equal sign and after equal sign in double quotes you could write

10
00:00:50,940 --> 00:00:55,430
command which you would like to alias in our example cube style.

11
00:00:55,770 --> 00:01:02,730
If you are a Windows user and if you are using PowerShell, this command will not work there.

12
00:01:03,360 --> 00:01:10,200
If you want to get similar to mine experience in command line, I recommend to you to install Git bash.

13
00:01:10,230 --> 00:01:15,840
In order to install it, please navigate to get a same com and simply download it.

14
00:01:15,870 --> 00:01:22,650
If it is already installed on your Windows computer, you already have access to it bash.

15
00:01:22,890 --> 00:01:24,480
It is another terminal.

16
00:01:24,510 --> 00:01:31,360
If you don't have git installed, please go to Windows section here and download Git for Windows.

17
00:01:31,380 --> 00:01:38,880
Here are different links to it and after installation please open git bash terminal instead of the PowerShell.

18
00:01:39,330 --> 00:01:44,900
So I already have alias command available in this terminal on macOS.

19
00:01:44,910 --> 00:01:48,210
Therefore I will be able to create such an alias.

20
00:01:48,240 --> 00:01:55,470
Let's create ls alias was created and now I'm able to utilize just short version of the command k get

21
00:01:55,470 --> 00:02:00,810
ports and now I see output no resources found in default namespace.

22
00:02:01,020 --> 00:02:07,560
From this point on, I will utilize such short version of the CTL command, but please notice that such

23
00:02:07,560 --> 00:02:14,250
areas will live only during this session in the terminal after a load of the computer or when you open

24
00:02:14,250 --> 00:02:17,640
up another terminal session, this will be gone.

25
00:02:17,640 --> 00:02:21,780
If you would like to create a permanent alias, of course it is possible to do.

26
00:02:21,780 --> 00:02:26,700
In order to perform such a task, you have to edit your shell configuration profile.

27
00:02:26,700 --> 00:02:29,370
But I will not do that right now.

28
00:02:29,370 --> 00:02:32,190
It's enough to have just temporal alias.

