‫Instructor: Hi.
‫Within this lecture.
‫We're gonna learn about a couple of new Linux comments,
‫and that includes the Nano
‫which is kind of an editor that you can use
‫in order to view the contents of the files and change them,
‫write those changes and stuff.
‫And we will actually use this a lot during the course.
‫So let me show you what I mean.
‫Right now I'm inside of Root folder.
‫I'm gonna see the dot dot and go into the Kali.
‫So remember,
‫we can go into the Kali and we can go into the documents
‫and we can even create any file over here with the route.
‫So for example,
‫I did that before, right?
‫Touch notes.txt
‫We did that before,
‫like a couple of lectures ago, right?
‫So you know the route can actually create
‫any file inside of any user's folder.
‫Right now I have created notes.txt.
‫Let's assume that I wanna go inside of that notes.txt
‫and write some notes.
‫Of course, I can download any editor using app
‫like the package manager.
‫Like we have learned before
‫Like Appt install this editor,
‫Appt install that editor and it would work.
‫But it comes to that when you know how to work with Nano
‫you can do that in Kali Linux,
‫you can do that in servers,
‫you can do that in Bantu and everything like that.
‫So first of all,
‫let me show you the cat comment.
‫So cat like in a cat.
‫So if you write this cat.notes.txt,
‫it actually reads the content of the notes.
‫Content of that file and show it to us.
‫Since we don't have anything,
‫it doesn't show up anything.
‫Right now I'm just gonna go ahead and nano of this.
‫Nano notes.txt.
‫So nano is and text editor
‫in which you can change the content of a file,
‫read the content of a file,
‫and write some codes,
‫write some comments,
‫whatever you want.
‫For example, if you write test, test, test,
‫you can see the available comments
‫inside of the nano over here.
‫For example,
‫you can write out the changes with control O.
‫You can cut the changes with control K.
‫Paste the changes with Control U.
‫So it's a little bit different
‫than what you used to do actually.
‫Not control X or control CNV
‫but it's not that our,
‫you can see all the shortcuts over here.
‫For example,
‫I have written this test, test, test.
‫If I want,
‫I can do control O, Enter.
‫Control O and Enter
‫In order to save this.
‫And control X to get out of it.
‫Right now if I do cat notes.txt,
‫here you go.
‫Those lines have been saved inside of the notes.txt.
‫And I can read it by cat comment.
‫So nano and cat.
‫So keep that in mind.
‫You can use Nano and Cat
‫and we will use them a lot during the lectures
‫as I said before.
‫So let me exit out of this one.
‫Let me open the Kali and I'm gonna show you something.
‫So I'm just gonna go into the document.
‫So I'm inside of my Kali user.
‫Here you go, notes.txt.
‫And if I nano notes.txt,
‫let's see what happens
‫It says that file notes.txt is unrightable.
‫Which means that I don't have the permission
‫of writing this inside of Kali user.
‫So this is one of the difference between the Kali and Roots.
‫So even if I write something
‫and even if I try to do control or and enter,
‫it won't work.
‫As you can see, doesn't work.
‫So I don't have the permission.
‫This is not related to Nano
‫since I don't have the permission to do that.
‫By the way,
‫I believe we have to say no to get out of this one.
‫But I have the permission to read notes.txt.
‫As you can see,
‫if I do Cat notes.txt
‫I can see all the tests.
‫But if I do pseudo zoo
‫and I can go to the Nano test.txt
‫and I can just change it in a way that I want.
‫And I can just do control O and control X to save it.
‫Okay?
‫Control, O, enter control X to get out of this one.
‫And if you see me use Leaf Pad during the lectures
‫during the course,
‫you can use Lift Padd or Nano as well.
‫And there is also something called vim.
‫Of course this is a good editor as well
‫but it is very hard to use if you're a beginner.
‫So I wouldn't suggest you use it.
‫You can go with Nano, okay?
‫And you can go with lift pad or anything like that.
‫But Nano is simple,
‫Nano is efficient
‫and you can use it across the Linux distributions as well.
‫It's almost available in every one of them.
‫So let's stop here and continue with the next one.