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