Everybody and welcome to part two of the Windows command line mini module.
So in this in this particular video we're gonna be going over how to navigate inside of the command
line.
Now navigating inside of a command line is important so you need to be able to know how to access certain
files so how to get to them how to reference them navigation plays a very key part if you can't navigate
you can't do much so you can see where right now we're in our car.
This is our current working directory right here.
So if we wanted to go to our desktop right.
We've seen the path before where it's the C drive.
Now we've got users and then administrator and desktop rights.
So if we can do this you can see if I tab it does a tab complete.
So you see this is the desktop.
So you see pipe list folder was a secret text.
So this is that's a path.
Now we need to use something called C D or change directory.
Simple.
So if we wanted to go to that that desktop we would again go to users administrator desktop.
There we go.
Now this would come up in different video but we're going to list the contents of the directory move
over that in its own video and kind of the unique quirks around it.
So that's how you change a directory.
Now you can do this to pretty much anywhere.
So if we go to the root of the C drive we're going to go here.
So now we're at the very very beginning where we see the users folder the windows folder etc. But what
happens if we are in the desktop folder and we only want to go back to we don't want to necessarily
retype we don't get to use this spotter but we don't want to retype that.
So if we go back directories on the command line this works for Linux as well.
And then for every directory you want to go back you do dot dot slash.
So in this case it would bring us back to desktop or back home insurance.
And if we did again we'd end up in users and again we'd end up back at the route to go back to desktop
but what happens if we want to go back to users right away.
So we would do see that slash to get us back an administrator and got that slash to bring us back into
it users.
So now as we were in the User Group now this is an important concept to you a possible end of using
it a lot.
And there are a few different flags that you can run or parameters for the C command or any other command.
So what I want to show you now is kind of how you can view the help files for a particular application.
Now in most cases you're going to use the command slash question mark.
Now this is foremost.
This is common for most Windows applications.
However we'll just show you a quick example.
There you go.
That's the help.
And there might be examples where you might just need a question mark.
In this particular case it doesn't the application doesn't support it.
So you might have a dash H.
That's entirely possible.
So it depends on the application this particular case it's actually a parameter for CDE.
So we can do dash dash H sometimes h can be replaced with help.
This is pretty common on Linux platforms where you're going to see the the dash dash even dash dash
question mark as an example.
So that's the question mark.
Now if an if an application developer writes their application for windows they very well could use
dash dash or dash help dash question market et cetera.
So it doesn't.
It does.
It's not specific but windows.
Microsoft built applications tend to use forward slash.
Question mark in their applications.
Now sometimes you can get the help function just by putting in some useless data.
A lot of applications more on the Linux side have a check for unknown parameters that are being set.
And in this case this is one that would not be recognized.
So in Windows case it just says it can't find the path specified because it assumes CDE and then something
is a path that you want to go to.
So we can even do slash random stuff again.
This one doesn't support that.
So you're going to use a slash question mark which I would suggest going to from the beginning.
Now if you need to change a directory to a different drive.
So right now I don't know if you guys remember we still have the drive attached for the the virtual
box and the C D which is r ISO that we downloaded for Windows.
So this drive is labeled D and this one is e now to change directory to a drive you don't use C D specifically.
So if I want to get a D drive I would just do D.
Go now that brings me to the D drive if I want to go to E.
Same thing if I go to C and back.
Now I'm back here.
Now there is something called a working directory.
So if I do.
And that's what C D changes.
So when you're on a particular drive for example or on the C drive C slash users which is what we see
here is our current working directory.
So if we did see administrators and I'm using tab when I start typing and I'll try to complete the the
phrase for you.
So now we're in the current working directory.
However if we go to the D drive our current working directory is the root.
But if we go back to see it still remembers that we were administrator.
So if I do C D D drive and I go to boot.
Right.
It doesn't change us.
However it changes the working directory in boot so Didi drive.
So when I go back to D drive you can see that I'm now in D boot instead of just the root of the D.
So this is just kind of get used to this pull at the command line and you're in your way you're on a
Windows system or using the server that we've installed player on the command line get used to changing
things moving things around moving yourself around in the environment using DVR which is a directory
listing which again we'll go over later but you can kind of see what files are in each folder.
Go ahead and play around with and get familiar get used to using got that Slash and getting using tab
completes as an example.
It's it's very good to get familiar with moving around the directories.