So far you have seen a bunch of comments that you will use very often.
So those are really the core comments that you really need to get started with the terminal.
Now I want to show you a few more comments.
So not just to show you whatever comments, but those are actually quite useful, especially for the
Raspberry Pi.
So first of all, well this you have seen it already several times.
You can clear the terminal like this.
It's quite useful.
Now there is one command that you can use to get the IP address of your Raspberry Pi.
So provided that you are already actually on the Raspberry Pi.
Okay, so this one is hostname.
And then dash I uppercase.
Make sure the I is uppercase I press enter and you can see this is my current IP address.
So this is the one that I have put on the VNC client to connect to the Raspberry Pi.
And well if you have access to the desktop note you can also get access to the IP address.
You can see it here actually directly when you hover on the WiFi button.
So this can be quite useful.
Of course you need to get access to the Raspberry Pi first.
But if you ever wondering what's the IP address, you know where to find it from the Raspberry Pi.
Then another useful command you can type DF and then slash H.
Just like that.
I'm going to press enter and this one is quite useful to see how much space is available on your SD
card.
So you have a bunch of stuff, but you will find one.
Usually that's like the biggest one here you can see 15GB.
So that's the size of the SD card.
So that's a 16GB.
But here you see 15 for that partition.
And you see that I have already used 6.4GB.
So that's including the OS and every package that I have installed and all the files.
For example if you take some photos and so everything that's on the on the SD card and I have 7.1GB
available.
So with this it's quite useful.
You just type DF and then dash h and you see how much space is available for you to use.
So maybe you can also see if you may need a bigger SD card for your future projects.
And you can get also those basically the same information if you just open a file manager here, for
example, it's in my home directory.
But you see free space seven gigabytes.
Okay.
So that's more or less the same information.
Then the third command I want to show you here is a pseudo.
So you will need to use sudo raspi dash config.
And actually we have used that previously.
So when we first connect it with ssh to enable VNC that's the command that we have used.
And you can use it again here.
So sudo raspi config you press enter and you get to the same menu that we had before.
So I press on the right key to go to finish.
I'm not going to come back to this menu.
Now you can also find this menu.
So we have seen if you go on the menu here and that's going to be Preferences and Raspberry Pi configuration.
That's going to be more or less the same thing.
but actually you might have more options using the terminal menu.
And why is that?
Because most often the graphical tool is basically just based on top of the command line tool.
Okay, it's not a different software, it's just that they used the command line tool and they built
a graphical interface on top of it, which means that at most you have the same amount of functionalities,
but you might have less functionalities.
So when you have the choice between using a graphical tool and the command line for the same thing,
you could expect to have actually more features with the command line.
Great.
And that's pretty much it.
Then the last thing I want to show you is just how to shut down and reboot the Raspberry Pi from the
terminal.
So you have seen you can click here and then shut down.
You can click on Shutdown and reboot.
Quite classic stuff, but you can also do sudo shut down and you will need to provide a time.
So you can just write.
Actually no.
If you do sudo shutdown down.
Now it might ask you for the password or not.
And then.
Well, if you press enter here, it's just going to shut down the Raspberry Pi.
So I'm not going to run this command now.
And if you want to reboot the Raspberry Pi well you just do sudo reboot and it's going to reboot the
Raspberry Pi.
So of course after you press this you will lose the connection to VNC and the Raspberry Pi is going
to reboot, etc..
All right.
So that's it for this introduction to the terminal on the Raspberry Pi.
90% of what we saw in this section can be applied to any Unix system.
So this is some knowledge that's going to be very useful for you in the future, not just for this course,
but everything you do in the future that's related to it.
And to finish, don't forget to download the PDF.
So there is a recap PDF that you can download with this lesson.
So that's the end of the section nine.
Download this PDF so you can get access to all of the commands very quickly.
So I encourage you to always keep the PDF on the side at first.
And then as you get more practice, you will start to remember the commands.