All right welcome back.
So in this video we're going to create files using get BASH So let's head over to get bash in the taskbar
there.
I might just change directory C colon and then we're going to see the desktop actually user and then
we'll do.
For me it's gonna be learn to hack plus ups.
Yo yo.
I'm clear that unless you change the director to desktop and I'm in it 0 1 sample then I'll clear this
and now I'm going to show you kind of a couple different ways that you can create files which is really
cool.
So let me show you a couple of things here.
Just real quick with the Explorer.
So here's what happens when you right click.
Actually then we go to the right directory here.
OK.
So when I'm in the desktop and I got a sample I right click and I do new.
There are a variety of files that are an option to create
files so you can make a access database.
You can make a contact.
You can make a document
a database again.
I'm not going to do that but I'm just showing you what the generic settings are so I can do a PowerPoint.
I can do a publisher document an Excel document
I can do a text document and I can do a rich text document and a zip file as well.
OK.
So now when I go over here and I pull this out and I look at the type or the extension of the file OK
here's the extension.
So if we go in here and we do Alice OK we can see what the extensions are.
So for example the contact file is a dark contact.
That's the extension the text file is a dot t t the rich text document is A R T F Ok the word document
is a dot docs.
So d o c x the publisher file is a dot pub the PowerPoint is a p p t x that's the extension the Excel
Doc is an X as X the database is a dot a C C D B and then the compress file is a dot zip.
So these are some of the examples that you can use for extensions.
OK now I'm going to delete all these for the simple reason of this.
So if I go in here and this is how you create a file so if I am already inside of this directory here
I'm inside this folder 0 1 sample and I type in the word touch I can create any of those file formats
again with no problems so I can do sample that zip touch sample that a C C DV touch sample that excel
as X touch sample that P P T X
touch sample that public touch sample that the O.C. X touch sample that t x t and touch sample that
contact.
So essentially what we're doing here is we're doing the same exact thing that I just did when I did
when I right clicked into new and created all these instead of running the script I just wrote touch
and then I knew the extension because I showed you what it was and I was able to make all these files
and half the time and this is the power of get bash.
This is the power of like the terminal the the black background and the white text the power of this
is this is the brain of the computer.
So this is where all the action happens.
So if I clear this and now I do I'm going to make a photoshop file so I know what the extension is and
all explain it to you it's gonna be sample PSC and you're going to see a photoshop icon pop up right
there.
Now we're gonna make an illustrator file so we'll do touch sample dot a I OK.
There's your illustrator file.
Now if I do touch sample that PD f OK.
Now I have a PDA.
So here's the thing.
If you know what the file extension is then you can create that file.
Now there's nothing here.
These are all blanks.
If I open this up there's nothing there.
If I open this up there's nothing there but I can open it if I open this up.
There's nothing there.
Open up the database.
There's nothing there and that's OK.
Because really the idea behind this is it gives you the ability to create files.
Now if were going to do let's do like a web development file or a web file index that HCM all ok then
I can open this up in a browser OK.
And that's going to show up here and it's not going to do anything because there's nothing there.
If I touch and I do mean that CSX it's the same thing which can open a notepad because that's the default.
But there's nothing in there.
So it's a blank file and you know that because it says 0 call bytes.
OK.
So now let's remove these files.
So just like when we created the directories in the previous video we also removed them.
So here's what I'm gonna do.
We're gonna go to my little cheat sheet here OK.
And let me move this down here so we can see everything right here.
So to remove the directory we did our MDI are now what I'm going to do is create File
we're going to do touch remove file
room and then file name
so what we're gonna do is we're gonna do our sample zip and that should delete it.
That's gone
our sample that each Tim Al Ahram index my bad index that demo.
There you go.
R.M. Maine that's the US US.
There you are.
Now this is a great tool if you know exactly which files you want to remove.
OK.
And here's the other thing you do arm and you can type sample and just tab and then do a CCD B OK.
And then our sample that I
clear that to Al us.
Now you can see we have eight files left.
My hair.
And so that's how you remove a file.
So to create the file What do you do touch and then you type in the file name.
So I'm going to add that to this little a little cheat sheet here.
So we're going to do touch and then file name dot extension so we'll do dot extension
type and then with this we're gonna do removes her arm file name dot extension.
OK.
So that's how you create and delete files and it's a really cool and fun thing to do and it's really
fun when you're doing it for.
Let's do excise tax
when we clear.
OK.
So what I really like using get bashed forced to create documents that I can edit.
Right.
And I'm not going to show you how to do that in this video.
But in the next video that's what we're going to learn as we're gonna learn how to edit files.
And this is gonna be a lot of fun.
So let me type an excerpt and I will see you in the next video.
Thanks for watching.