In this article I will debate on several major advantages and disadvantages for using the command-line in Linux. When I think it's 'better' to use CLI, when not, and how can this can impact the work speed.
The pros
It's faster: It's well-known that in most cases the use of command-line is faster and makes easier working with large numbers of files
Easily automate tasks through scripts: Scripts and functions can prove very handy for certain tasks which need to be performed on a regular basis
Aliases: A strong point of the shell is the ability to create aliases, which usually replace a longer command (or small group of commands) with an easy to type one
More powerful: In most cases CLI is more powerful. Just an example, when it comes to manipulating a big number of files CLI is the way to go, since it can perform custom operations using several commands which usually fit on a single line very fast
Faster for getting help: It's faster to get help by copying and pasting a command (given that you know what it does) than through screenshots; bandwidth is one factor, another one is different desktop environments (e.g. use Synaptic/KPackage, go there, under that button, press that etc, instead of just apt-get install something)
Less memory: Using CLI won't load additional GUI libraries (given they aren't already loaded)
Less bandwidth: Although today bandwidth is not a major factor any more, using CLI for navigating on the Internet saves bandwidth and is faster
Basic CLI knowledge can make wonders: CLI can be successfully used on a very old computer, and you can browse the web, listen to music, use IRC and IM, read mail etc without any problems. A minimum CLI knowledge will also help troubleshooting a computer for which X won't start etc
GUI frontends can be incomplete: With CLI, you have complete power over the parameters to pass to a command-line tool. Sometimes GUI frontends lack those
The cons
Making mistakes: Running commands and scripts in a wrong manner (especially if one doesn't know what the specific command does) can lead to unwanted removal of files, a broken system and so on
Lack of GUI: Although you can browse the web, see images and even videos (using ASCII), it's obviously using CLI for that isn't the optimum way. Of course, this also depends on one's needs, but browsing the web for example with a text-based browser is usually slower and lacks images, videos etc.
GUI is definitely more intuitive: And also, more easy to remember things. Since the brain memorizes images too, GUI will be easier to use for the average user
GUI looks good: I guess it's always nicer to look at KDE4 effects or Compiz than at a screen full of text
Now I won't be hypocritical: I think over 95% of the Linux users have a GUI, and although one can use a computer only with CLI, it makes no sense to use only CLI if you also need to do tasks which require a GUI.Source URL: http://ashesgarrett.blogspot.com/2009/04/pros-and-cons-for-using-cli.html
Visit ashes garrett for Daily Updated Hairstyles Collection
The pros
It's faster: It's well-known that in most cases the use of command-line is faster and makes easier working with large numbers of files
Easily automate tasks through scripts: Scripts and functions can prove very handy for certain tasks which need to be performed on a regular basis
Aliases: A strong point of the shell is the ability to create aliases, which usually replace a longer command (or small group of commands) with an easy to type one
More powerful: In most cases CLI is more powerful. Just an example, when it comes to manipulating a big number of files CLI is the way to go, since it can perform custom operations using several commands which usually fit on a single line very fast
Faster for getting help: It's faster to get help by copying and pasting a command (given that you know what it does) than through screenshots; bandwidth is one factor, another one is different desktop environments (e.g. use Synaptic/KPackage, go there, under that button, press that etc, instead of just apt-get install something)
Less memory: Using CLI won't load additional GUI libraries (given they aren't already loaded)
Less bandwidth: Although today bandwidth is not a major factor any more, using CLI for navigating on the Internet saves bandwidth and is faster
Basic CLI knowledge can make wonders: CLI can be successfully used on a very old computer, and you can browse the web, listen to music, use IRC and IM, read mail etc without any problems. A minimum CLI knowledge will also help troubleshooting a computer for which X won't start etc
GUI frontends can be incomplete: With CLI, you have complete power over the parameters to pass to a command-line tool. Sometimes GUI frontends lack those
The cons
Making mistakes: Running commands and scripts in a wrong manner (especially if one doesn't know what the specific command does) can lead to unwanted removal of files, a broken system and so on
Lack of GUI: Although you can browse the web, see images and even videos (using ASCII), it's obviously using CLI for that isn't the optimum way. Of course, this also depends on one's needs, but browsing the web for example with a text-based browser is usually slower and lacks images, videos etc.
GUI is definitely more intuitive: And also, more easy to remember things. Since the brain memorizes images too, GUI will be easier to use for the average user
GUI looks good: I guess it's always nicer to look at KDE4 effects or Compiz than at a screen full of text
Now I won't be hypocritical: I think over 95% of the Linux users have a GUI, and although one can use a computer only with CLI, it makes no sense to use only CLI if you also need to do tasks which require a GUI.Source URL: http://ashesgarrett.blogspot.com/2009/04/pros-and-cons-for-using-cli.html
Visit ashes garrett for Daily Updated Hairstyles Collection