Hi, everyone.
As we all know that we have done with a fine come on now it's time to see modifying files and directories.
So when you have found your file and directories now, you'll want to be able to perform Xs on them.
So in upcoming lectures, we look at how to create files and directories, copy files, rhenium files
and delete files and directories.
So first of all, we are going to learn about creating files.
So there are many ways to create file.
Ingenix, but for now we will just look at two simple matter.
The first one this guy got does nothing but concatenated.
So the meaning of concatenation is just to combine pieces together so that Katka Mind is generally used
for displaying the contents of a file.
But it can also be used to create small files.
So for creating bigger files, it is better to enter the code in a text editor such as Vem Lilypad or
we are having so many, uh, textual data.
So most popular ones are them Alperin leanings and simply save the file.
Sunaj start with the one.
So the concatenation with regard to what does it mean to the cat, go on followed by the filing will
display the contents of the file.
But to create the file, we follow the cat goman with a redirect.
The North that the symbol like OK, God, and this is the closing angle of bracket, this is the redirect
and the name of the file we want to create.
So I want to create hogging file.
Not hacking or hacking is very familiar names, so I'm going to give it hacking.
So after this, when you enter.
OK.
So when you enter, this will go into intractable mode and wait for you to start entering the content
of the file so this can be puzzling because the promotion disappears.
But if you simply begin typing, whatever you enter will go into the file.
Suppose I'm entering here.
Hacking.
As the most demanding a girl.
Of the.
21ST century and what I need to do is to exit and to return, to promote what I need to do is simply
control be now and OK.
OK, so now if you want to see the content of the file, what they need to do is gag.
Hockey filename and so of dating entry, as you can see, that we are done with the adding text into
the file, which is hacking is the most demanding skill of 21st century.
So if you do not use the redact symbol, salinity's will spit back the content of your file.
So to add or append more content to a file, you can use the get go on with the drop a double redirect
devilry.
That means gagged, testable, redacted, and the filing which is hacking and enter.
So after this, everyone of lone.
Hocking sword alone hocking.
OK, so after this, simply what you need to do, it is simply does do this.
And again, if you want to see the content gap hacking.
OK, what?
OK.
Something went wrong, OK, let me do it again now every.
Everyone should learn hiking, OK?
Is this clear?
Now.
Let's try let's see the content.
Now, as you can see, that we are done with the content, so suppose that, OK, first of all, let's
talk about this.
So we are able to add one more line into a file, which is everyone should learn hacking and hacking
is the most demanding skill of 21st century.
OK, suppose that, guys, if you you want to read the file with the information so you can simply use
the card combined with a single redirect again.
So how you can do that.
OK, so how you can do that.
Simply used that hacking file name to write it and simplify it enters into that.
I want to like uh.
It is the future.
Now, let me do it now.
Guard.
Guard and finally, which is hacking ahead, and as you can see, that we are able to change.
All right.
What was inside the file?
Oh, OK.
So it is now.
It is the future.
So this is how you can work with this.
So what we have learned we are we have learned how to create file using get how to add content inside
there to using cat hacking.
OK, so OK.
So with the help of this you can create file and you can add content inside this with the help of cat
hacking, you can display, you can see or display the content present inside this particular file if
you want supposed if you want to add more layers, you can use the redirect symbol and you can see with
the help of this and suppose that you want to write it so you can use the same command.
OK, hacking, redirect singlehood addict and hacking or cat single and hacking like this.
OK, so one more one that is very useful to create the file, which is touch.
So this one was originally developed so a user could simply touch a file to change some of its details,
such as the date it was created or modified.
However, if the file doesn't already exist, this command could use that file by default.
So this is like.
It is not meant for creating fight, but if the file is not present, it will create and evolve new
file for you.
So how you can create the file, you need to simply touch on new file.
This is how you can do this now or let me do it like I know how to enter software.
And as you can see, that file now do so after doing Ellers, as you can see that this is nothing wordlist.
So you can see that we have successfully created the file which we have given there.
Now we are having those files.
We are able to uh, now let's see the content inside the file.
We are having nothing inside this particular file.
So this is how you can work with this and this is how you can create any particular file.
So in the next lecture, we are going to see how to create a Badagry, which is very important to none.
So this is all for this lecture, guys.
I hope you guys enjoyed it.
And thank you for watching this lecture.