{"video_id":"Q1dwzi5DKio","title":"Why Do Command Lines Still Exist?","channel":"Techquickie","show":"Techquickie","published_at":"2022-05-05T14:58:16Z","duration_s":287,"segments":[{"start_s":0.0,"end_s":3.92,"text":"Many of you probably aren't old enough to remember when most of us did our computing","speaker":null,"is_sponsor":0},{"start_s":3.92,"end_s":8.0,"text":"through a command line, you know, where you type commands into a black screen instead","speaker":null,"is_sponsor":0},{"start_s":8.0,"end_s":12.56,"text":"of using modern niceties like Windows, icons, and mouse cursors.","speaker":null,"is_sponsor":0},{"start_s":12.56,"end_s":17.44,"text":"But despite the fact that graphical user interfaces, or GUIs, are a much easier way","speaker":null,"is_sponsor":0},{"start_s":17.44,"end_s":23.56,"text":"to interact with our phones and PCs, the command line is still alive and kicking.","speaker":null,"is_sponsor":0},{"start_s":23.56,"end_s":28.36,"text":"Somehow. If you're a Windows user, it's easy to find both the command prompt and power shell in","speaker":null,"is_sponsor":0},{"start_s":28.36,"end_s":33.72,"text":"the start menu. And if you use Linux instead, you're probably familiar with Bash, which also uses a command","speaker":null,"is_sponsor":0},{"start_s":33.72,"end_s":40.0,"text":"line. But in 2021, why exactly are these things still around?","speaker":null,"is_sponsor":0},{"start_s":40.0,"end_s":44.04,"text":"So if you're a bit older and you've ever used a DOS machine, you probably know that","speaker":null,"is_sponsor":0},{"start_s":44.04,"end_s":48.96,"text":"even though computers back when DOS ruled the world were way, way slower than what we","speaker":null,"is_sponsor":0},{"start_s":48.96,"end_s":53.6,"text":"have today, command lines still tended to respond very quickly.","speaker":null,"is_sponsor":0},{"start_s":53.6,"end_s":59.12,"text":"You typed in a command to perform some kind of file operation and it just worked.","speaker":null,"is_sponsor":0},{"start_s":59.12,"end_s":65.6,"text":"This is part of their modern appeal. Their lightweight text interface makes them extremely easy to run on even low end machines.","speaker":null,"is_sponsor":0},{"start_s":65.6,"end_s":70.02,"text":"So if you need to get something accomplished, the command line can be a very reliable way","speaker":null,"is_sponsor":0},{"start_s":70.02,"end_s":76.08,"text":"to do it, especially as fancy GUIs are a lot more prone to errors or crashes, as anyone","speaker":null,"is_sponsor":0},{"start_s":76.08,"end_s":82.32,"text":"has ever used Windows ME can attest to. Man, even that makes you old.","speaker":null,"is_sponsor":0},{"start_s":82.32,"end_s":86.06,"text":"But command lines can make things very quick for other reasons as well.","speaker":null,"is_sponsor":0},{"start_s":86.06,"end_s":91.2,"text":"This might sound counterintuitive as it seems like you have to type out long drawn out commands","speaker":null,"is_sponsor":0},{"start_s":91.2,"end_s":97.56,"text":"for everything you need to do. But the upside to this approach is that if you want to perform a complicated or repetitive","speaker":null,"is_sponsor":0},{"start_s":97.56,"end_s":101.08,"text":"task, a command line can make things much faster.","speaker":null,"is_sponsor":0},{"start_s":101.08,"end_s":105.92,"text":"For example, if you have to move lots of files around or manipulate large datasets, it might","speaker":null,"is_sponsor":0},{"start_s":105.92,"end_s":110.08,"text":"require lots of repetitive mouse clicks or copying and pasting within a GUI like File","speaker":null,"is_sponsor":0},{"start_s":110.08,"end_s":116.8,"text":"Explorer or a spreadsheet program. But with a command line, you can easily automate these tasks, especially as you can keep tacking","speaker":null,"is_sponsor":0},{"start_s":116.8,"end_s":120.48,"text":"on different arguments and switches onto the end of the line in order to perform these","speaker":null,"is_sponsor":0},{"start_s":120.48,"end_s":125.2,"text":"tasks with precision. Assuming, of course, you're typing them correctly.","speaker":null,"is_sponsor":0},{"start_s":125.2,"end_s":129.56,"text":"That is, yeah. Command lines also enable consistency across platforms.","speaker":null,"is_sponsor":0},{"start_s":129.56,"end_s":137.52,"text":"This is especially true in Linux. Because Linux is open source, it has many different distributions created by many different","speaker":null,"is_sponsor":0},{"start_s":137.52,"end_s":144.94,"text":"developers. But the Bash Shell, born again Shell Shell, is supported by a huge number of Linux distros","speaker":null,"is_sponsor":0},{"start_s":144.94,"end_s":150.14,"text":"and even by macOS, until recently when they replaced it with Fish or XSH?","speaker":null,"is_sponsor":0},{"start_s":150.14,"end_s":155.5,"text":"Things ZSH. Yeah, that's the one. Anyway, even if the GUIs have differences, you more or less know what you're getting","speaker":null,"is_sponsor":0},{"start_s":155.5,"end_s":160.06,"text":"with the command line. There are also many ways in which the command line is more powerful.","speaker":null,"is_sponsor":0},{"start_s":160.06,"end_s":167.14,"text":"This might not seem so obvious. So many of us are used to finding ways of getting things done with a GUI.","speaker":null,"is_sponsor":0},{"start_s":167.14,"end_s":171.78,"text":"But when you use a GUI, you're limited to only the options the developer could fit on","speaker":null,"is_sponsor":0},{"start_s":171.78,"end_s":177.74,"text":"the screen or chose to give you. However, there are a lot of tricks you can accomplish through a command line that you","speaker":null,"is_sponsor":0},{"start_s":177.74,"end_s":181.06,"text":"might never know you could do if you only use a GUI.","speaker":null,"is_sponsor":0},{"start_s":181.06,"end_s":185.54,"text":"For example, in Windows, you can do things like view a saved Wi-Fi password, set a timer","speaker":null,"is_sponsor":0},{"start_s":185.54,"end_s":190.54,"text":"to shut down your PC once it's done downloading a large program or file, or even batch rename","speaker":null,"is_sponsor":0},{"start_s":190.54,"end_s":193.7,"text":"files with far more flexibility than you can get in Windows Explorer.","speaker":null,"is_sponsor":0},{"start_s":193.7,"end_s":197.98,"text":"And this isn't even considering the myriad ways third-party programs support custom features","speaker":null,"is_sponsor":0},{"start_s":197.98,"end_s":203.46,"text":"through the command line. In fact, there's so much flexibility with the command line, once you learn how to use","speaker":null,"is_sponsor":0},{"start_s":203.46,"end_s":208.98,"text":"it at least, that during the Windows XP era, Microsoft introduced PowerShell, a souped","speaker":null,"is_sponsor":0},{"start_s":208.98,"end_s":212.82,"text":"up command line interface that supports much more advanced features.","speaker":null,"is_sponsor":0},{"start_s":212.82,"end_s":217.78,"text":"Keep in mind, this was way after most people stopped using command lines for everyday computing.","speaker":null,"is_sponsor":0},{"start_s":217.78,"end_s":222.26,"text":"But the idea was to make Windows more useful for sysadmins, programmers, and anyone else","speaker":null,"is_sponsor":0},{"start_s":222.26,"end_s":231.26,"text":"that simply wanted to get more out of their computer. So bottom line, while a command line might seem more tedious, it could be worth learning","speaker":null,"is_sponsor":0},{"start_s":231.26,"end_s":234.38,"text":"if you want to take your PC experience to the next level.","speaker":null,"is_sponsor":0},{"start_s":234.38,"end_s":240.7,"text":"And hey, it comes to the built-in dark mode. Thanks for watching guys, like, dislike, check out one of our other videos like this one","speaker":null,"is_sponsor":0},{"start_s":240.7,"end_s":243.98,"text":"on Who Owns Linux. It's pretty good.","speaker":null,"is_sponsor":1},{"start_s":243.98,"end_s":247.42,"text":"Comment with video suggestions you might have and don't forget to subscribe and follow.","speaker":null,"is_sponsor":1}],"full_text":"Many of you probably aren't old enough to remember when most of us did our computing through a command line, you know, where you type commands into a black screen instead of using modern niceties like Windows, icons, and mouse cursors. But despite the fact that graphical user interfaces, or GUIs, are a much easier way to interact with our phones and PCs, the command line is still alive and kicking. Somehow. If you're a Windows user, it's easy to find both the command prompt and power shell in the start menu. And if you use Linux instead, you're probably familiar with Bash, which also uses a command line. But in 2021, why exactly are these things still around? So if you're a bit older and you've ever used a DOS machine, you probably know that even though computers back when DOS ruled the world were way, way slower than what we have today, command lines still tended to respond very quickly. You typed in a command to perform some kind of file operation and it just worked. This is part of their modern appeal. Their lightweight text interface makes them extremely easy to run on even low end machines. So if you need to get something accomplished, the command line can be a very reliable way to do it, especially as fancy GUIs are a lot more prone to errors or crashes, as anyone has ever used Windows ME can attest to. Man, even that makes you old. But command lines can make things very quick for other reasons as well. This might sound counterintuitive as it seems like you have to type out long drawn out commands for everything you need to do. But the upside to this approach is that if you want to perform a complicated or repetitive task, a command line can make things much faster. For example, if you have to move lots of files around or manipulate large datasets, it might require lots of repetitive mouse clicks or copying and pasting within a GUI like File Explorer or a spreadsheet program. But with a command line, you can easily automate these tasks, especially as you can keep tacking on different arguments and switches onto the end of the line in order to perform these tasks with precision. Assuming, of course, you're typing them correctly. That is, yeah. Command lines also enable consistency across platforms. This is especially true in Linux. Because Linux is open source, it has many different distributions created by many different developers. But the Bash Shell, born again Shell Shell, is supported by a huge number of Linux distros and even by macOS, until recently when they replaced it with Fish or XSH? Things ZSH. Yeah, that's the one. Anyway, even if the GUIs have differences, you more or less know what you're getting with the command line. There are also many ways in which the command line is more powerful. This might not seem so obvious. So many of us are used to finding ways of getting things done with a GUI. But when you use a GUI, you're limited to only the options the developer could fit on the screen or chose to give you. However, there are a lot of tricks you can accomplish through a command line that you might never know you could do if you only use a GUI. For example, in Windows, you can do things like view a saved Wi-Fi password, set a timer to shut down your PC once it's done downloading a large program or file, or even batch rename files with far more flexibility than you can get in Windows Explorer. And this isn't even considering the myriad ways third-party programs support custom features through the command line. In fact, there's so much flexibility with the command line, once you learn how to use it at least, that during the Windows XP era, Microsoft introduced PowerShell, a souped up command line interface that supports much more advanced features. Keep in mind, this was way after most people stopped using command lines for everyday computing. But the idea was to make Windows more useful for sysadmins, programmers, and anyone else that simply wanted to get more out of their computer. So bottom line, while a command line might seem more tedious, it could be worth learning if you want to take your PC experience to the next level. And hey, it comes to the built-in dark mode. Thanks for watching guys, like, dislike, check out one of our other videos like this one on Who Owns Linux. It's pretty good. Comment with video suggestions you might have and don't forget to subscribe and follow."}