Let's use the first few Linux commands at our command line terminal in our Kalli Linux box.
So once you've opened up Oracle Virtual Box, find your Caleigh Linux should be saved in its previous
state.
We're going to start at.
And if you've let your Linux machine log out, all you have to remember is route and tour T, double
o r.
And we sign signed into our Kelly Linux box and remember, if you ever forget that, it's down here
in the description in Oracle Virtual Box, I'm going to go to full screen so that we can see this better.
We go.
And in Kelly Lennox, I'm going to open the terminal.
That's over here on the left hand side.
Or you can go up to applications and come down to useful applications.
And then you can see accessories and Internet office.
You can see lots of different things down there.
The easiest way to grab it is from here at the command line terminal.
And we're going to zoom in.
Till our command line terminal almost fills up the screen, just so we'll be able to see everything
pretty clearly as we do each of these.
Well, when I'm first logged in as my route user, if I do an L.
S.
That is directory listing.
It will tell me that I've got all my home files and I can see that I'm in as route on my Caleigh host.
And that, Tilde, just means that I'm in my home directory or my users working profile directory.
So when I do an LSD, I can see that just like on a Windows machine, I have desktop downloads, pictures,
videos, music.
All of these are defaults under each user in Linux, just like we'd see in Windows.
There are some other commands, though, that we can do with or some there's some other options we can
have with the Ellis' command, like L.
S Dash.
Hey.
And this is going to show all the files, not just the ones that are visible.
This shows hidden files.
So we can see their folders like Dot Dot and their are files like Bash History.
There are hidden files in here.
There's some public files and then we have directories as well.
You can tell on my Caleigh Linux box right now, by default, the directories are showing in a slightly
different color from the files.
That helps me know that documents and desktop are folders.
So if I say L.
S Dash L.
And those are L's in both those locations on an Atlas Dash one less dash l.
I can list a slightly different way so that I see directory.
And then I see the desktop is colored like a directory.
That is my actual desktop folder.
Just like I would have on Windows documents.
The same thing as a directory.
And these are whether they're readable or rideable for each.
For first of all, the owner and then for my group.
And then for everybody or the world.
So anybody can read this folder.
Who has access to this machine?
Anybody from my group can read and run files inside these directories, and I can read and write.
So this l'Est Ash El gives us a long listing, so it gives every bit of information about these and
you can see I have I've created a file down here, Will, we'll do a little bit more with files and
a little bit, but that's just a regular file.
If I combine those two, I can say L.
S space Dash eight L.
And hit enter.
And you say I get a long listing of all the files.
So Ellis Dash A-L gives me a long listing of all the files, including hidden files and hidden folders.
And you can see we have some hidden files.
Your Basche history is just the history of all the commands you've entered into your shell.
This Basche shell just gives us a way to keep track for this batch.
History gives us a keep track.
A way to keep track of all the Linux commands that we've entered in the shell like this.
Ellis Dash A-L.
We call it our command line shell in the terminal.
And when I get a full screen like this, I'll show you one bonus thing that's handy.
Clear.
It clears the screen back up so we can come back up to the top.
So Ellis shows us all of our files.
Ellis Dash A-L shows us everything, including hidden files and along listing and clear.
We'll just bring us back up to clear terminal screen.
So let's change directories inside one of those folders, c.D Space.
And let's go to our desktop.
So c.D will change directories, c.D Space and the name of a folder.
Well, let's show you a shortcut that will help us as well.
Oh, and changing directories back up one c.D space dot dot.
The two dots will take us back up one directory.
That's like hitting the up arrow when you have a graphical user interface for your files.
So if I say c.D space d e if I start a capital D in a lowercase E capitalization does matter in Linux
C.
D.
Space Capital D.
Little E.
And then hit the tab key and you'll notice that it auto fills for me and I can see space dot dot to
go back up a directory c.d space D little o notice via tab.
It doesn't do anything.
If I hit tab twice it tells me there are two folders, documents and downloads.
So I need one more character.
I want to go into my documents folder, C.D. Dock Tab and the tab key will help you autofill anytime
you're surfing through directories or trying to find specific files.
That's a really helpful autocomplete feature in Linux and in Windows.
We'll see that as well.
So if I see in the documents, I can see them in the documents folder.
If I just press c.D and hit enter.
Notice it takes me back to my tilde or my home directory.
If I do an Ellis here, I'm back home.
I'm back up one directory, c.D space dot dot always six you up one directory c.D.
And then nothing c.D just by itself in Linux will take us to our user directory, our home directory.
So it's a handy thing to be able to do from the command line.
Let's clear the screen.
And do a couple more commands.
Let's try to find out what kind of computer we're running on.
So what do you name?
Dash A.
This is our Unix name.
Our hostname.
We can say I'm running on a Caleigh Linux, four point nine on an HMD 64 Debian Linux.
So we can see a lot of information about the operating system that this computer's running.
Let's do another command history.
And we'll see all the things that I've done in my history.
That was history.
And let me show you another really useful feature in Linux and Windows, both from the command line,
if you'll just hit your up arrow.
Do you see you get your last few commands.
So if you want to go back and redo a command, all you have to do is sit you're up arrow and then down.
We'll take you back to where you are.
So you up and down arrows will give you a shortcut to go back in your history.
So we've hit four really cool commands.
Ellis c.D, the you name to get our Unix name.
And then history.
And then we've seen how we can use TABD Autofill and the up arrow and down arrow to repeat a command
if we need to from our history.
We'll see even more in the next lesson.