Command line on Linux: Pro or Con?


Recommended Posts

Saw a post or two in this thread that decried the terminal or command line on a *nix box as some horrible thing.

Actually, I have grown to really appreciate its advantages.

  • I can post a command or two in the forum, and the person that needs it can highlight with a mouse, and middle-click in an open terminal to get the exact command. You can't do that with a set of Windows instructions (or instructions using a Linux GUI, either).
  • Output of a command (for an error log or such) can be posted in a forum and searched
  • Posted statuses and such from above use up less much less bytes than the graphical equivalent while also often giving more information.

For example, to check partitioning information on a Linux box, I would ask someone to post the output of a

fdisk -l

command. They would be able to post the results, like so:

Disk /dev/sda: 146.8 GB, 146815733760 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot	  Start		 End	  Blocks   Id  System
/dev/sda1   *		   1		  13	   97656   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2			  13	   17850   143277083+   5  Extended
/dev/sda5			  13		 254	 1937499+  83  Linux
/dev/sda6			 254	   17850   141339583   83  Linux

which shows a good amount of detail, and you can even see that there is a problem because partition 1 (1-13) overlaps the extended partition 2 (13-17850).

Simple paste of one command, and copy/paste results that can be reviewed.

In Windows, to see partitioning (using the sample XP box I am supplied here at work), I would have to say:

  1. Click Start, "Settings", select control panel
  2. In the control panel, click Administrative Tools
  3. When you see your admin tools, click Computer Management, and the management tool will open
  4. In the left pane, find "Disk Management" and click it.

and those instructions will get you to something that looks like this:

post-36818-1226591304_thumb.png

While it looks nice, it does not show the type of detail that will find an issue of overlapping blocks like posted above. Larger image. Less informative.

Having a terminal to use isn't such a horrible thing, in my opinion. As long as there are also GUI tools for people to stumble through, if they needed to (in the case of the above example, gparted does quite nicely on Linux).

The best of both worlds, if you ask me.

Link to comment
https://www.neowin.net/forum/topic/696244-command-line-on-linux-pro-or-con/
Share on other sites

Don't have nothing against GUI's, but am all about the advantages of the command line too. A system that provides the combination of both is the way to go.

The terminal allows to do fast tasks without having to run a GUI program, wait for it to load and then execute that same task, that by now would have been done with a simple command.

How about bash scripting? There's so much you can do with a bash script made by yourself for a specific task. Same task could take ages to do in a program, such a file browser for instance.

command line is the best feature !

it allows you to create batch scripts that can be scheduled etc. And as you pointed out, you can get a lot more information than you can in a gui.

Unix got one thing right when they decided to build all the system tools in small efficient stand alone applications that can be linked to give out results that the authors might have never imagined. That can't be done with a gui

>Diskpart

DISKPART> select disk=0

Disk 0 is now the selected disk.

DISKPART> list partition

Partition ### Type Size Offset

------------- ---------------- ------- -------

Partition 1 Primary 298 GB 34 KB

or

DISKPART> list volume

Volume ### Ltr Label Fs Type Size Status Info

---------- --- ----------- ----- ---------- ------- --------- --------

Volume 0 E DVD-ROM 0 B No Media

Volume 1 G 20061111_21 CDFS DVD-ROM 559 MB Healthy

Volume 2 F DVD-ROM 0 B No Media

Volume 3 D 320GB NTFS Partition 298 GB Healthy Pagefile

Volume 4 C Primary NTFS Partition 69 GB Healthy System

DISKPART>

I appreciate a good command line, I use Linux servers with CLI only and no GUI (Security)

But on Windows its possible to get to the innards with CLI, just need the know how

I appreciate a good command line, I use Linux servers with CLI only and no GUI (Security)

But on Windows its possible to get to the innards with CLI, just need the know how

on windows the CLI isn't as powerful as in unix, you can't pipe etc

also the tools provided by MS for the CLI are lacking, they improved with Msh (the MS shell....might be called something else now...) but last time I used it, it felt heavy (took a long time to start etc ) and that's not what a CLI is supposed to be

Imo -

Pro's: Can't disagree with anything already said. It's just so useful for complicated and mundane tasks.

Con's: It's a command line. If all you know about how to use a computer involves a point-and-click GUI, then a command line will stop you dead. A blinking cursor. It's in no way friendly and it doesn't give you any clues as to what to do next. There are no tooltips, and there are no buttons to click. I think it's a psychological thing. I think some people associate it with some kind of low-level access that, if you type the wrong thing, will render your computer completely inoperable. It requires knowledge of a language of abbreviated commands and, for file operations, a mental picture of the layout of the directory structure. None of which is required in a GUI, because it's simply drag-and-drop.

Those who know, know that it is good. Those who don't know view it with suspicion and disdain.

Command line is great for advanced and expert users, but say when average Joe gives Linux a try (which 99% of them won't do), but hypothetically let's say they install Ubuntu using Wubi. If they ever see the terminal, they will instantly start to freak out. The average Joe/Jane's need a GUI. Sure, some things maybe faster in command line, but you have to understand what you use is not suitable for others. This is why I hate Linux ###### who tell you to do everything in the terminal.

Command line is great for advanced and expert users, but say when average Joe gives Linux a try (which 99% of them won't do), but hypothetically let's say they install Ubuntu using Wubi. If they ever see the terminal, they will instantly start to freak out. The average Joe/Jane's need a GUI. Sure, some things maybe faster in command line, but you have to understand what you use is not suitable for others. This is why I hate Linux ###### who tell you to do everything in the terminal.

The truth is that 99% of Linux "######" DO use the terminal or command line for most/everything!

... This is why I hate Linux ###### who tell you to do everything in the terminal.

Wow.

It just seems that even a new user would prefer copy/paste of an instruction over a listing of steps on which app to select. What tab to select on that app, select "advanced", then a few options to set. There are times where a copy/paste command is quicker and more painless than firing up a GUI app.

And what is this about "everything"? I certainly said in my first post that having a GUI alternative is good for those who may be unfamiliar but want to muddle through menus and such themselves.

Surely, in the case of partition data that I used as an example, you could at least agree that it would be easier to paste that one line in a terminal (no typing even needed!) than to follow the steps to start up the app and get partition data to display.

If you still think that what I showed is quicker and easier for the GUI part than the cut and paste of the command... Then I will let you call me a "Linux ######".

EDIT: Weird, the plural "######" is not filtered. But the singular term "*******" is.

Command line is great for advanced and expert users, but say when average Joe gives Linux a try (which 99% of them won't do), but hypothetically let's say they install Ubuntu using Wubi. If they ever see the terminal, they will instantly start to freak out. The average Joe/Jane's need a GUI. Sure, some things maybe faster in command line, but you have to understand what you use is not suitable for others. This is why I hate Linux ###### who tell you to do everything in the terminal.

With you being tsu, tsu, tsupersonic! it would be expected that you would like to have things done as quickly as possible, tsupersonically i mean. Command line allows you to do just that. :)

although I've been lacklustre in learning the CLI, I'm steadily growing fond of its structure and how it lets the user operate.

I use to be scared of the CLI but this is changing. Nothing changes without my consent this is one of the advantages I think is a key pro in having CLI.

I like using the command line, its usually faster than a GUI based method.

but i mostly only use it for automated stuff, like batch files or scripts anyway, except on linux, i probably use the CLI more than the GUI on linux. I'm not particularly fond of the linux GUI's ive tried so far :p

i really wish you could do things like that in windows, thats another reason why i love osx. You get the best of both worlds.

true, i used to think just like that, but

i have linux boxes for everything i need linux for, and win desktop for browsing/casual gaming/watching videos etc. in result i don't have to buy overpriced mac hardware (yes, i know about hackintoshes, i'm too lazy for that) plus i can upgrade whatever components i need without problems plus i can run software the rest of the world does.

i could afford a mac, but -- i don't like the idea of sticking it up my ass when a new one comes out.

I like using the command line, its usually faster than a GUI based method.

I figured it was just my computer being slow, but yes I agree, it's much faster for me if I know what I'm doing. Major con though is that anyone new to Linux is going to be terrified at first if they've never used anything like it before. (I still worry about breaking things...so far so good though!)

Well, in Debian based systems, apt is a great way to download, install, or remove things. But also is Synaptic (GUI front-end). Other commands are great for CLI. It all depends what you want to use..... each to his own!

Weird, the plural "********" is not filtered. But the singular term "*******" is.

Now it is..... ;)

Definitely pro CLI. For many tasks it is much more effective than a GUI.

I can see why Joe User would be terrified by having to use a terminal window; for professional users like most of us here it shouldn't be a problem. If you can't figure something out - RTFM.

It's not just CLI, but all the programs you can use there, and the fact that everything on linux is a file and can be accessed as such. Even if you had a decent CLI on Windows it would be near useless as almost every Windows program is GUI only and info is stored in binary containers, so I understand why lots of Windows users don't realize the amount of stuff you can do with the CLI on linux/unix.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • You're absolutely right! No reason in hell these should be on the road!
    • They aren't going to want to. Most would just go with the 17 Pro and save money. Why would they want to spend $300 for basically the same thing? It's not worth it if there are hardly any changes from year to year.
    • 24H2 rolled out to the Release Preview Channel in early June 2024, so this coming a bit later in the Experimental Channel (formerly Dev) doesn't really say much more than earlier H2 releases that came out in October. I am not sure what the thinking is here by putting it in Experimental, one would think that the 26H2 stamp means features are locked down and it's now bug tested until October? I don't even pretend to understand Microsoft's strategy for Windows Insider Program though
    • Nothing Ear (a) and CMF Buds Pro 2 with active noise cancellation drop to lowest price ever by Fiza Ali With Prime Day 2026 scheduled to run from Tuesday 23 to Friday 26 June, Amazon has already begun rolling out early access offers ahead of the main event. Particularly, Nothing Ear (a) and CMF Buds Pro 2 wireless earbuds have dropped to their lowest price ever with limited Prime deal offering 33% and 24% discounts, respectively. Nothing Ear (a) are equipped with 11mm dynamic drivers featuring a PM1 + TPU diaphragm. For noise control, the earbuds offer active noise cancellation (ANC) of up to 45dB across frequencies reaching 5,000Hz. The smart ANC algorithm adapts to surrounding noise levels, while a Transparency Mode allows users to remain aware of their environment when needed. Connectivity is handled via Bluetooth 5.3, with support for AAC, SBC, and LDAC audio codecs. Additional features include IP54-rated earbuds for dust and splash resistance, paired with an IPX2-rated charging case. Furthermore, users also benefit from pinch controls, in-ear detection, Google Fast Pair, Microsoft Swift Pair, dual-device connectivity, and a low-latency mode designed for gaming and video playback. The Nothing X app unlocks a range of customisation options, including a personalised equaliser, bass enhancement, control remapping, ear tip fit testing, firmware updates, dual-device management, a Find My Earbuds feature, and low-latency mode settings. When it comes to the battery, the earbuds house a 46mAh lithium-ion battery, while the charging case contains a 500mAh cell. With ANC disabled, users can expect up to 9.5 hours of playback from the earbuds and up to 42.5 hours in total with the charging case. With ANC enabled, battery life is rated at up to 5.5 hours per charge and up to 24.5 hours combined with the case. Finally, fast charging is also supported that should provide up to 10 hours of playback from a 10-minute charge with ANC turned off. Nothing Ear (a) Wireless Earbuds (Black): $53.20 (Amazon US) - 33% The CMF Buds Pro 2 feature a dual-driver audio system consisting of an 11mm bass driver and a 6mm micro-planar tweeter. The earbuds use PU (polyurethane) and PET (polyethylene terephthalate) titanium-coated diaphragms and are tuned by Nothing to deliver balanced audio performance. They further support active noise cancellation of up to 50dB across a frequency range of up to 5,000Hz, and noise control features include a Smart ANC algorithm, Adaptive ANC, Transparency Mode, and Clear Voice Technology 2.0. For calls, the CMF Buds Pro 2 use a total of six microphones and feature an environmental noise-cancelling algorithm, Clear Voice Technology 3.0, and Wind Noise Reduction 3.0 that should improve voice clarity during conversations. Furthermore, when it comes to the connectivity, it is provided through Bluetooth 5.4. Additional features include an IP55 rating for dust and water resistance, Google Fast Pair, Microsoft Swift Pair, in-ear detection, a low-latency mode, and a Find My Earbuds function. Moreover, through the Nothing X app for Android and iOS, users can access custom EQ settings, a bass enhancement algorithm, customisable controls, Find My Earbuds, low-latency mode, dual-device connectivity, an ear tip fit test, and firmware updates. The earbuds contain a 60mAh rechargeable lithium-ion battery, while the charging case houses a 460mAh battery. A full charge of the earbuds and case via USB-C should take approximately 85 minutes, while the earbuds alone should be fully recharged in the case in around 60 minutes. Battery life is rated at up to 11 hours of playback on a single charge and up to 43 hours with the charging case when ANC is turned off. With ANC enabled, playback time is reduced to up to 6.5 hours on the earbuds and up to 26 hours with the charging case. Talk time is rated at up to 6 hours on the earbuds and 25 hours with the case with ANC disabled, or up to 4.8 hours and 18.6 hours, respectively, with ANC enabled. CMF Buds Pro 2 Wireless Earbuds (Dark Grey): $37.05 (Amazon US) - 24% Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
  • Recent Achievements

    • Collaborator
      ryansurfer98 went up a rank
      Collaborator
    • Week One Done
      Eurosoft10 earned a badge
      Week One Done
    • One Month Later
      Eurosoft10 earned a badge
      One Month Later
    • One Year In
      Skeet Campbell earned a badge
      One Year In
    • One Month Later
      Sharbel earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      542
    2. 2
      +Edouard
      186
    3. 3
      Michael Scrip
      77
    4. 4
      PsYcHoKiLLa
      76
    5. 5
      Steven P.
      71
  • Tell a friend

    Love Neowin? Tell a friend!