1
00:00:07,540 --> 00:00:13,570
What is everybody this is Jason with does soapstar calm end in this video we are going to cover some

2
00:00:13,570 --> 00:00:16,900
basics of navigating using the terminal.

3
00:00:16,930 --> 00:00:23,110
So we're going to be covering how to change directories going back and forth between them and also had

4
00:00:23,110 --> 00:00:27,510
a list out items so we can see what's inside these directories.

5
00:00:27,720 --> 00:00:32,970
Now the first thing that we want to do is open up our terminal or our command line.

6
00:00:33,160 --> 00:00:34,370
So I'm on that.

7
00:00:34,600 --> 00:00:36,330
You can do this one of two ways.

8
00:00:36,340 --> 00:00:43,180
You can either hit command space and just type in and do a spotlight search for the terminal or we could

9
00:00:43,180 --> 00:00:46,960
simply do this through the finder and to do that.

10
00:00:46,990 --> 00:00:54,820
Just go to your applications come down to the bottom you'll see a folder called utilities and then just

11
00:00:54,820 --> 00:00:57,530
find the Terminal application.

12
00:00:57,580 --> 00:01:00,330
So we'll go ahead and double click them.

13
00:01:00,400 --> 00:01:07,550
So let me open this up here and we're going to zoom in so we can see this a little bit better.

14
00:01:08,050 --> 00:01:10,650
All right just a little more perfect.

15
00:01:10,690 --> 00:01:14,240
So what we're going to cover is first changing directories.

16
00:01:14,260 --> 00:01:15,860
Now what does that mean.

17
00:01:16,030 --> 00:01:21,490
Well changing directories is like a way of navigating through folders on your computer or different

18
00:01:21,490 --> 00:01:28,690
location such as the desktop documents and folders that might live within that section of your computer.

19
00:01:28,690 --> 00:01:34,860
So for example right here you can see that we are at my home directory.

20
00:01:35,080 --> 00:01:40,930
And to give you a visual of this what I want to do is open up my finder and I'm going to put it right

21
00:01:40,960 --> 00:01:42,010
next to this.

22
00:01:42,150 --> 00:01:42,850
OK.

23
00:01:43,050 --> 00:01:44,670
Let me make this a little bit smaller.

24
00:01:44,710 --> 00:01:45,230
OK.

25
00:01:45,490 --> 00:01:49,170
So right now this little house here right here Jay Ramnath.

26
00:01:49,180 --> 00:01:50,540
That is where I'm at.

27
00:01:50,560 --> 00:01:51,830
That's where I'm located.

28
00:01:51,830 --> 00:01:52,370
All right.

29
00:01:52,600 --> 00:01:55,780
And you can see inside of this directory.

30
00:01:55,810 --> 00:01:58,750
I've got a bunch of folders and things so we can go to.

31
00:01:58,960 --> 00:02:06,910
So to get onto the desk top forming sample we would write the command CD which stands for change directory

32
00:02:07,330 --> 00:02:12,530
and we can simply type out the word desktop and go ahead and press enter.

33
00:02:12,550 --> 00:02:17,320
Now you'll see in your terminal that the location has changed to the desktop.

34
00:02:17,320 --> 00:02:25,270
And we can do this again by listing out some items that are on my desktop so to view items that are

35
00:02:25,270 --> 00:02:27,490
on your desktop go ahead and write the command.

36
00:02:27,490 --> 00:02:28,950
LS can.

37
00:02:29,000 --> 00:02:32,710
This is going to list out everything that lives within this directory.

38
00:02:32,890 --> 00:02:36,430
So on my desktop you can see that I have a couple of folders here.

39
00:02:36,750 --> 00:02:37,350
All right.

40
00:02:37,390 --> 00:02:43,930
And if we switch over here in the Finder you can see that the same folders that appear in my terminal

41
00:02:43,990 --> 00:02:45,580
are also here in the Finder.

42
00:02:45,880 --> 00:02:50,240
All right so let's dive a little bit more into how to change directories.

43
00:02:50,290 --> 00:02:53,810
So I've got this folder on my desktop called first Durm.

44
00:02:53,830 --> 00:02:55,570
So her first directory.

45
00:02:55,840 --> 00:03:02,930
So if I want to get to this I'm going to simply type in CD and I'm going to type in first.

46
00:03:03,730 --> 00:03:06,460
This is taking me into the first directory here.

47
00:03:06,790 --> 00:03:13,060
And then if we type out LS to list out the items in here you'll see that I have a couple of files and

48
00:03:13,120 --> 00:03:13,920
another folder.

49
00:03:13,960 --> 00:03:15,820
So over here in Finder.

50
00:03:15,820 --> 00:03:21,280
Why don't we go ahead and click that and you'll see that we're looking at the same files and folders

51
00:03:21,610 --> 00:03:26,490
that we see here in the terminal and we can dive a little bit deeper in here.

52
00:03:26,530 --> 00:03:31,850
So let's go to CD and we're going to dive into the second directory.

53
00:03:32,050 --> 00:03:37,310
Now I just pressed the tab Kiem which auto completed the path here.

54
00:03:37,780 --> 00:03:38,470
And you can do that.

55
00:03:38,470 --> 00:03:44,950
It's kind of like a hockey I guess to finish typing out the directory that you'd like to enter.

56
00:03:45,040 --> 00:03:50,610
So I'm going to go ahead and click enter here and let's go ahead and list out everything that's in here.

57
00:03:50,770 --> 00:03:54,270
And we have two files and another folder.

58
00:03:54,280 --> 00:03:59,490
All right so if we click over here we can see the same location where I'm at here.

59
00:03:59,830 --> 00:04:00,640
All right so cool.

60
00:04:00,640 --> 00:04:06,850
So we're learning how to dive deeper into directories into folders and listing out those items.

61
00:04:06,850 --> 00:04:08,840
But how do we go back.

62
00:04:09,040 --> 00:04:10,370
Well there is a command for that.

63
00:04:10,390 --> 00:04:15,370
So simply we're going to change the directory of I'm typing it in over here.

64
00:04:15,700 --> 00:04:21,760
So we're going to change the directory make sure you're in your terminal type in CD space.

65
00:04:22,000 --> 00:04:23,140
Dot dot all right.

66
00:04:23,140 --> 00:04:27,430
And this allows you to step back one level.

67
00:04:27,700 --> 00:04:31,880
All right so then we hit enter and you can see we're back into our first directory.

68
00:04:32,080 --> 00:04:36,460
So essentially what we did in the Finder is we're in our second directory here.

69
00:04:36,600 --> 00:04:37,270
OK.

70
00:04:37,330 --> 00:04:40,760
And we just clicked back to go to the first directory.

71
00:04:40,810 --> 00:04:44,660
I'm actually going to put this in an application view so it makes a little bit more sense here.

72
00:04:44,680 --> 00:04:51,280
So we're in the second directory up here and we just hit the backyard pretty much and then went into

73
00:04:51,280 --> 00:04:54,240
the first directory here.

74
00:04:54,310 --> 00:04:55,480
Let me change this here.

75
00:04:55,480 --> 00:04:56,410
Perfect.

76
00:04:56,770 --> 00:04:57,130
OK.

77
00:04:57,160 --> 00:04:59,660
So that's a little bit about what's going on here.

78
00:04:59,920 --> 00:05:02,600
All right and then we can list out these items here.

79
00:05:02,620 --> 00:05:10,360
Now what I want you to do is if we want to get back to Homebase like the the level that we were at right

80
00:05:10,360 --> 00:05:18,010
over here we could simply type in the command CD and that's going to take us back to the home base.

81
00:05:18,010 --> 00:05:24,560
So this is a really important thing to know how to do to be able to change directories through the terminal.

82
00:05:24,580 --> 00:05:29,810
And what you're mainly going to be using this for is when you create projects that you're developing

83
00:05:29,870 --> 00:05:35,290
and you're going to have certain folders and different files in there and you might have to install

84
00:05:35,290 --> 00:05:40,120
certain dependencies or third party libraries and what you're going to need to do is you're going to

85
00:05:40,120 --> 00:05:46,270
need to know how to change directories into specific folders into your project so you can install or

86
00:05:46,270 --> 00:05:53,710
download specific dependencies and things like that into your project so congratulations we've just

87
00:05:53,710 --> 00:05:58,370
covered how to change directories navigate through our computer and list out the items.

88
00:05:58,510 --> 00:05:59,810
That's a wrap for this lesson.

89
00:05:59,890 --> 00:06:00,550
Let's move on.
