Let's proceed.
And now let's talk about creation and removal of all directories and files, and let's do that in a
home folder for that.
Let's Sidy and notice that here.
Come on.
Braund was changed to deal done.
And let's clear terminal.
And first, let's create a new folder here.
And before doing that, lets leased files and folder was No.
And there are no files and folders at the moment in home directory for this Rouda user.
All right, let's create a new folder called Test.
And for that you can use command and gate D i r.
And here is argument sublight.
Name of the folder you want to create.
Press enter.
And now there is a single folder.
Test.
Great.
Let me show you how you could create a sub folder.
Let's type N.K. d item.
Test and type.
Test one.
And if I was cydia to test and list.
File and folder Ischia.
I'll see it.
Test one subdirectory in the test directory.
All right, let's go one level up.
Sidiq two dots.
And let's create a following folder.
MKC the item test to slash test three.
Notice that they want to create test three folder inside of the test to folder.
Let's press enter and see what will happen.
And I see error cannot create directory test to slash test three.
No such file or directory.
And if you want to create a subdirectory in the directory.
The disk currently absent.
There was no test to directory here.
Let me at type.
Alas, there was only a test folder.
And if you want to do so, you need to use additional option in mce d.
I recommend this beep that will create Biram directories as well.
Let's do that.
And D are.
You could always go back to previous commands by pressing up Arrow and here.
That's an option DSP and no test to folder was created successfully.
Alas, here it is.
And let's alas test too.
And I see test three folder inside of the test folder.
This how you could create directories and subdirectories.
All right.
Let's not remove those all directories and less files to remove.
Desk directory.
Our AMP test and Iasi error cannot remove.
Test is a directory.
And it means that we are amcom aren't.
You could safely remove a single file or multiple files using space between them.
But you are not able to remove directory for that.
You need to use additional option.
This are Oracle resume, lexically a terminal and use our M dash arm.
And here type name of the folder and press enter and noticed folder is no longer present here.
Let's not do the same with best to folder.
Please accept that it contains additional subfolder.
Let's r m this r test to and this test.
The folder was removed as well.
Let's list files and folders and notice absent.
All right.
Let's not create again test folder mkc d i r test.
Let's siddhi to this test folder.
And let's create new file.
If you want to create new file, you could use different approaches.
If you want to create empty file, you could use dash command and simply type deitsch.
And here is argument.
Sublight file name.
And let's create a file called File one dot Deakes Deep Press Enter.
And now this file was created.
But of course, at the moment this file is empty.
If you want to create file with some contents, you could use a photo increment echo.
Let's say hello, Rold.
And here, use Graden sign that will create new file.
And right on the street and here will be file, name, file to dot the extreme.
Please remember from previous sections that this operator actually redirects SDD out from the previous
command.
This one to specific file.
In this case, file to DODIG, still less press enter.
And if I have a look at the files and folders here now I'll see file do DODIG stay on the list.
And you can use the card command in order to read contents of specific file.
Let's first read contents of file.
Wando digs deep and now this file is empty because I have simply created it using dyche command here.
Let's go look at contents of file to the tax deal.
And now this file contains text a lot, Rolt.
And thus because of this command we have sent to study out the data stream from this comment to specific
file file to the text.
All right.
Let's now go back one level up to home directory.
And the note we have here, single directory test.
Let's not try to remove this directory using our M this argument.
And here will be the name of the directory.
Test.
And this directory was removed.
Let's have a look at the contents of the home directory now.
And notice empty.
That means that using dish are option in our AMCOM.
And you could remove not just directories.
You could remove also subdirectories and all files located inside.
That's all for this lecture.
And next, let me explain you how to edit files.
I'll see you next.
Bye bye.