1 00:00:00,000 --> 00:00:01,929 [No audio] 2 00:00:01,929 --> 00:00:04,610 Linux versus Windows command. 3 00:00:04,610 --> 00:00:06,142 Why do we care about Windows 4 00:00:06,142 --> 00:00:08,468 when we're learning Linux. Right. 5 00:00:08,468 --> 00:00:11,024 Well, certain times you do have to get 6 00:00:11,024 --> 00:00:15,552 into Windows to work or to perform certain 7 00:00:15,655 --> 00:00:19,725 tasks that will transfer files from one location 8 00:00:19,725 --> 00:00:22,690 to another, or to run certain commands. 9 00:00:22,690 --> 00:00:24,500 So certain things that you would have 10 00:00:24,534 --> 00:00:28,510 to do eventually to work with Windows. 11 00:00:28,510 --> 00:00:31,785 But of course, mostly Windows is all GUI. 12 00:00:31,785 --> 00:00:33,931 But I think it's good that you should 13 00:00:33,931 --> 00:00:37,450 know certain differences between Linux and Windows. 14 00:00:37,450 --> 00:00:41,192 I will log into my Linux machine as well as 15 00:00:41,192 --> 00:00:45,476 I will bring up the Windows command line as well. 16 00:00:45,476 --> 00:00:49,009 What? Is there a Windows command line? 17 00:00:49,009 --> 00:00:53,000 Yes, there is, there is a Windows command line, but it 18 00:00:53,000 --> 00:00:57,631 is not purely used, just like as Linux is used. 19 00:00:57,631 --> 00:01:00,020 But there are certain commands that we will run in 20 00:01:00,020 --> 00:01:05,306 Windows that does some of the functions that Linux does. 21 00:01:05,510 --> 00:01:09,860 Here are the few commands that you will see that 22 00:01:09,860 --> 00:01:13,328 are pretty much works the same way as it works 23 00:01:13,328 --> 00:01:18,199 in Linux, but the name of the command is different. 24 00:01:18,199 --> 00:01:22,170 So listing of a file or directory in Linux is ls -l, 25 00:01:22,170 --> 00:01:26,804 in Windows it is dir. To rename a file is move in 26 00:01:26,804 --> 00:01:30,723 Linux and ren in Windows. 27 00:01:30,723 --> 00:01:36,231 Copy simply straight copy, copy, and in Linux it is copy, cp. 28 00:01:36,231 --> 00:01:40,902 move and mv, cls and clear. 29 00:01:40,902 --> 00:01:47,058 del which is to remove a file or remove a directory, and rm in Linux. 30 00:01:47,058 --> 00:01:53,750 fc is to compare two files, diff is to compare two files. 31 00:01:53,750 --> 00:02:02,190 find is to find something inside of a file, whereas grep does that in Linux. 32 00:02:02,750 --> 00:02:06,318 To get some help in Linux you get man, and to get 33 00:02:06,344 --> 00:02:12,729 some help in Windows, you run command slash question mark, sorry. 34 00:02:12,899 --> 00:02:16,259 And then we have display your location and file system, 35 00:02:16,259 --> 00:02:22,093 we do pwd and in Linux is change dir or chdir, 36 00:02:22,169 --> 00:02:24,626 I don't know how it is pronounced. 37 00:02:24,817 --> 00:02:27,059 And the last one we have date and time. 38 00:02:27,509 --> 00:02:31,029 Of course the commands do not stop here. 39 00:02:31,080 --> 00:02:33,214 There are many other commands, but I'm just giving 40 00:02:33,251 --> 00:02:36,322 you examples of few of them, that there are 41 00:02:36,455 --> 00:02:39,598 some command lines that Windows have put up over 42 00:02:39,623 --> 00:02:42,669 the years to compete with Linux. 43 00:02:43,289 --> 00:02:48,166 But everybody knows that Windows is primarily used 44 00:02:48,287 --> 00:02:51,565 because it's GUI based, and Linux is primarily 45 00:02:51,638 --> 00:02:56,266 used, in Linux, because it's terminal or command line based. 46 00:02:56,447 --> 00:02:58,813 And when you have a command line as opposed 47 00:02:58,861 --> 00:03:01,606 to GUI, GUI takes a lot of CPU, a 48 00:03:01,608 --> 00:03:04,294 lot of memory, and command line does not, 49 00:03:04,332 --> 00:03:08,050 so that's why Linux is so much faster. 50 00:03:08,490 --> 00:03:11,121 And then also with the command lines you can 51 00:03:11,136 --> 00:03:14,522 do so many things as opposed to Windows. 52 00:03:14,522 --> 00:03:16,850 So I'm going to log into my Linux machine, and 53 00:03:16,850 --> 00:03:21,970 run few commands, the ones that I highlighted, just to get 54 00:03:22,020 --> 00:03:26,578 to the lessons, and just to get to make 55 00:03:26,604 --> 00:03:29,578 you understand what exactly the difference is. 56 00:03:29,723 --> 00:03:34,690 So this is my command line in Linux, and 57 00:03:34,740 --> 00:03:36,358 I'm going to go over some of the ones 58 00:03:36,384 --> 00:03:40,225 that I have here, it is cls, and in Linux, 59 00:03:40,298 --> 00:03:44,914 so when I do ls -ltr, message come up. When I type 60 00:03:45,011 --> 00:03:50,520 clear, it clears the screen. In Windows I have this terminal open, 61 00:03:50,850 --> 00:03:56,218 if I type anything like this, hit Enter, Enter, Enter, or I could 62 00:03:56,244 --> 00:04:01,533 just cls and it clears the screen as well. Then I 63 00:04:01,632 --> 00:04:05,001 have other commands such as, 64 00:04:05,001 --> 00:04:08,548 [No audio] 65 00:04:08,548 --> 00:04:09,673 move the cursor, 66 00:04:11,057 --> 00:04:14,470 such as help, command slash, 67 00:04:14,470 --> 00:04:18,528 so if I have a command that I'm running let's say dir, 68 00:04:18,700 --> 00:04:25,002 then I'll hit slash and question mark. See 69 00:04:25,075 --> 00:04:29,238 it is giving me exactly, not exactly, but pretty much the 70 00:04:29,264 --> 00:04:35,973 same way as Linux does. And I do man on ls, 71 00:04:36,141 --> 00:04:41,394 this gives me the same help. Windows have actually catching up 72 00:04:41,432 --> 00:04:45,029 a lot of things on the command line just like for 73 00:04:45,140 --> 00:04:49,506 Linux, and the reason they do that they know that system 74 00:04:49,567 --> 00:04:54,558 administrator engineers who are really dealing with something very specific or 75 00:04:54,584 --> 00:04:57,138 something more robust or they wanted to get the result right 76 00:04:57,164 --> 00:05:01,730 away, they want to get into the command line. So to 77 00:05:01,730 --> 00:05:04,761 compete in the market, that's why they came up with these command 78 00:05:04,786 --> 00:05:09,773 lines. The next one I have chdir, which tells me which 79 00:05:09,812 --> 00:05:14,817 directory I am and in Linux what that command is pwd 80 00:05:14,854 --> 00:05:20,153 which directory I am. Then the last one is time, and 81 00:05:20,252 --> 00:05:23,898 in Linux is date, and it's time over there. I want 82 00:05:23,924 --> 00:05:28,641 you to run it yourself. Yeah, I think I should run it 83 00:05:28,656 --> 00:05:30,682 because there's one thing I do want to tell you that 84 00:05:30,756 --> 00:05:33,537 when you run time, it does give you a time, and 85 00:05:33,563 --> 00:05:36,394 then it prompts you to enter new time. Well 86 00:05:36,432 --> 00:05:38,398 you don't have to worry about it, so you just control 87 00:05:38,484 --> 00:05:41,338 C out of it, just like that you control C out 88 00:05:41,364 --> 00:05:46,906 of Linux machine. So these are a few things that you 89 00:05:46,967 --> 00:05:52,634 should know if you are getting into Linux job and Linux 90 00:05:52,682 --> 00:05:55,730 environment. It does not mean that you just going to forget 91 00:05:55,850 --> 00:06:01,858 everything about Windows. Windows has been there for a while, I 92 00:06:01,884 --> 00:06:04,966 would say it's a very good operating system in terms of 93 00:06:05,148 --> 00:06:10,473 desktop users who use it every day and of course most 94 00:06:10,511 --> 00:06:15,093 of the desktop market is captured by Windows, we should not forget that, 95 00:06:15,131 --> 00:06:17,029 we should give that credit to Microsoft 96 00:06:17,089 --> 00:06:22,234 of course, but in several environment where the higher level applications runs 97 00:06:22,272 --> 00:06:24,314 then of course Linux wins. 98 00:06:24,314 --> 00:06:29,334 [No audio]