1 00:00:00,000 --> 00:00:01,930 [No audio] 2 00:00:01,930 --> 00:00:03,990 Linux versus Windows command. 3 00:00:04,610 --> 00:00:06,094 Why do we care about Windows 4 00:00:06,142 --> 00:00:08,286 when we are learning Linux. Right. 5 00:00:08,468 --> 00:00:10,998 Well, certain times you do have to get 6 00:00:11,024 --> 00:00:15,342 into Windows to work or to perform certain 7 00:00:15,416 --> 00:00:19,642 tasks that will transfer files from one location 8 00:00:19,726 --> 00:00:22,570 to another or to run certain commands. 9 00:00:22,690 --> 00:00:24,450 So certain things that you would have 10 00:00:24,500 --> 00:00:28,390 to do eventually to work with Windows. 11 00:00:28,510 --> 00:00:31,642 But of course, mostly Windows is all GUI. 12 00:00:31,786 --> 00:00:33,894 But I think it's good that you should 13 00:00:33,932 --> 00:00:37,270 know certain differences between Linux and Windows. 14 00:00:37,450 --> 00:00:41,154 I will log into my Linux machine as well as 15 00:00:41,192 --> 00:00:45,282 I will bring up the Windows command line as well. 16 00:00:45,476 --> 00:00:48,140 What? Is there a Windows command line? 17 00:00:49,010 --> 00:00:52,950 Yes, there is, there is a Windows command line, but it 18 00:00:53,000 --> 00:00:57,534 is not purely used, just like as Linux is used. 19 00:00:57,632 --> 00:00:59,970 But there are certain commands that we will run in 20 00:01:00,020 --> 00:01:04,760 Windows that does some of the functions that Linux does. 21 00:01:05,510 --> 00:01:09,810 Here are the few commands that you will see that 22 00:01:09,860 --> 00:01:13,266 are pretty much works the same way as it works 23 00:01:13,328 --> 00:01:18,090 in Linux, but the name of the command is different. 24 00:01:18,200 --> 00:01:22,171 So listing of a file or directory in Linux is ls -l, 25 00:01:22,171 --> 00:01:26,778 in Windows it is dir. To rename a file is move in 26 00:01:26,804 --> 00:01:30,724 Linux and ren in Windows. 27 00:01:30,724 --> 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,059 del which is to remove a file or remove a directory, and rm in Linux. 30 00:01:47,059 --> 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,900 --> 00:02:16,260 And then we have display your location and file system, 35 00:02:16,260 --> 00:02:22,093 we do pwd and in Linux is change dir or chdir, 36 00:02:22,170 --> 00:02:24,626 I don't know how it is pronounced. 37 00:02:24,818 --> 00:02:27,060 And the last one we have date and time. 38 00:02:27,510 --> 00:02:31,030 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,252 --> 00:02:36,322 you examples of few of them, that there are 41 00:02:36,456 --> 00:02:39,598 some command lines that Windows have put up over 42 00:02:39,624 --> 00:02:42,670 the years to compete with Linux. 43 00:02:43,290 --> 00:02:48,166 But everybody knows that Windows is primarily used 44 00:02:48,288 --> 00:02:51,566 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,448 --> 00:02:58,814 And when you have a command line as opposed 47 00:02:58,862 --> 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,122 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,724 --> 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,226 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,012 --> 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,534 just cls and it clears the screen as well. Then I 63 00:04:01,632 --> 00:04:05,002 have other commands such as, 64 00:04:05,002 --> 00:04:08,548 [No audio] 65 00:04:08,548 --> 00:04:09,673 move the cursor, 66 00:04:11,058 --> 00:04:14,470 such as help, command slash, 67 00:04:14,470 --> 00:04:18,529 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,076 --> 00:04:29,238 it is giving me exactly, not exactly, but pretty much the 70 00:04:29,264 --> 00:04:35,974 same way as Linux does. And I do man on ls, 71 00:04:36,142 --> 00:04:41,394 this gives me the same help. Windows have actually catching up 72 00:04:41,432 --> 00:04:45,030 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,568 --> 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,762 compete in the market, that's why they came up with these command 78 00:05:04,786 --> 00:05:09,774 lines. The next one I have chdir, which tells me which 79 00:05:09,812 --> 00:05:14,818 directory I am and in Linux what that command is pwd 80 00:05:14,854 --> 00:05:20,154 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,642 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,538 when you run time, it does give you a time, and 85 00:05:33,564 --> 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,968 --> 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,474 desktop users who use it every day and of course most 94 00:06:10,512 --> 00:06:15,094 of the desktop market is captured by Windows, we should not forget that, 95 00:06:15,132 --> 00:06:17,030 we should give that credit to Microsoft 96 00:06:17,090 --> 00:06:22,234 of course, but in several environment where the higher 97 00:06:22,272 --> 00:06:25,558 level applications runs then of course Linux wins. 98 00:06:25,558 --> 00:06:29,334 [No audio]