[No audio]
Linux versus Windows command.
Why do we care about Windows
when we're learning Linux. Right.
Well, certain times you do have to get
into Windows to work or to perform certain
tasks that will transfer files from one location
to another, or to run certain commands.
So certain things that you would have
to do eventually to work with Windows.
But of course, mostly Windows is all GUI.
But I think it's good that you should
know certain differences between Linux and Windows.
I will log into my Linux machine as well as
I will bring up the Windows command line as well.
What? Is there a Windows command line?
Yes, there is, there is a Windows command line, but it
is not purely used, just like as Linux is used.
But there are certain commands that we will run in
Windows that does some of the functions that Linux does.
Here are the few commands that you will see that
are pretty much works the same way as it works
in Linux, but the name of the command is different.
So listing of a file or directory in Linux is ls -l,
in Windows it is dir. To rename a file is move in
Linux and ren in Windows.
Copy simply straight copy, copy, and in Linux it is copy, cp.
move and mv, cls and clear.
del which is to remove a file or remove a directory, and rm in Linux.
fc is to compare two files, diff is to compare two files.
find is to find something inside of a file, whereas grep does that in Linux.
To get some help in Linux you get man, and to get
some help in Windows, you run command slash question mark, sorry.
And then we have display your location and file system,
we do pwd and in Linux is change dir or chdir,
I don't know how it is pronounced.
And the last one we have date and time.
Of course the commands do not stop here.
There are many other commands, but I'm just giving
you examples of few of them, that there are
some command lines that Windows have put up over
the years to compete with Linux.
But everybody knows that Windows is primarily used
because it's GUI based, and Linux is primarily
used, in Linux, because it's terminal or command line based.
And when you have a command line as opposed
to GUI, GUI takes a lot of CPU, a
lot of memory, and command line does not,
so that's why Linux is so much faster.
And then also with the command lines you can
do so many things as opposed to Windows.
So I'm going to log into my Linux machine, and
run few commands, the ones that I highlighted, just to get
to the lessons, and just to get to make
you understand what exactly the difference is.
So this is my command line in Linux, and
I'm going to go over some of the ones
that I have here, it is cls, and in Linux,
so when I do ls -ltr, message come up. When I type
clear, it clears the screen. In Windows I have this terminal open,
if I type anything like this, hit Enter, Enter, Enter, or I could
just cls and it clears the screen as well. Then I
have other commands such as,
[No audio]
move the cursor,
such as help, command slash,
so if I have a command that I'm running let's say dir,
then I'll hit slash and question mark. See
it is giving me exactly, not exactly, but pretty much the
same way as Linux does. And I do man on ls,
this gives me the same help. Windows have actually catching up
a lot of things on the command line just like for
Linux, and the reason they do that they know that system
administrator engineers who are really dealing with something very specific or
something more robust or they wanted to get the result right
away, they want to get into the command line. So to
compete in the market, that's why they came up with these command
lines. The next one I have chdir, which tells me which
directory I am and in Linux what that command is pwd
which directory I am. Then the last one is time, and
in Linux is date, and it's time over there. I want
you to run it yourself. Yeah, I think I should run it
because there's one thing I do want to tell you that
when you run time, it does give you a time, and
then it prompts you to enter new time. Well
you don't have to worry about it, so you just control
C out of it, just like that you control C out
of Linux machine. So these are a few things that you
should know if you are getting into Linux job and Linux
environment. It does not mean that you just going to forget
everything about Windows. Windows has been there for a while, I
would say it's a very good operating system in terms of
desktop users who use it every day and of course most
of the desktop market is captured by Windows, we should not forget that,
we should give that credit to Microsoft
of course, but in several environment where the higher level applications runs
then of course Linux wins.
[No audio]