Question:
Command Line Interface and GUI?
2009-01-12 03:49:07 UTC
what are the jobs of the command line interface and gui? and what tasks can they perform?
Seven answers:
ElricTheFullMetal
2009-01-12 03:56:32 UTC
when you posted this question you were using GUI , now assume you posted the question using command prompt , a command line email service and now you are reading this answer in a command prompt while accessing your inbox.
LordHawke
2009-01-12 11:56:33 UTC
You're question is a bit empty, but I'll try to explain.



When the little black box with words opens up. That is a command prompt. Everything that you can do on your computer has a command line equivalent. With the invention of the GUI (Graphical User Interface) people no longer needed to know the command lines to run their computer. You can do anything in command that you can do on your computer, only in text form. All the GUI is is making it into a picture so that you can point and click.



I believe you have the wrong idea of what those terms actually mean. Without a GUI, you would have to do everything in command. I hope you understand now. If you are still confused, talk to me.

IM: jerade.hensley@yahoo.com
bokopperud
2009-01-12 12:11:56 UTC
Are we talking about windows, linux or some other os or program?



For an OS both allows you to manipulate files and folders/directories and run programs... it's how you do it that is the great difference.



In a GUI you do it by manipulating little pictures (icons) around on the screen. In the CLI you do it by writing in strings of text.



The major drawback for the CLI is that there are many obscure command-names -- with even more obscure switches/options -- you must remember. In addition you may have to type in ,ong paths to file, remember where certain files are located and what they're called.



The major drawback for the GUI, is that more complex things than starting programs and simple moving/coping files, soon becomes complex and tedious. While you can easely rename a file in a GUI, renaming 20 files (in the same folder) becomes very tedious and timeconsuming.



Here the CLI has it's strength, as it allows you to make simple scripts/batch-programs that can quickly do that kind of task (like renaming after some pattern) all the files in a directory.



While GUI is very easy and simple to use, some things are just much quicker accomplished in the CLI.
AbiusX
2009-01-12 11:59:13 UTC
There are two types of Interfaces for applications:



Console (Command Line) which is the default interface for Linux and MS-DOS. You should type statements and use keyboard to work with a console interface.



GUI (Window) which is the default for Windows or Mac OS . In a window you can use a combination of Mouse and Keyboard to interact with graphical elements to perform your task.
Seamonkey
2009-01-12 11:58:20 UTC
GUI is a bit like the matrix - if you don't know how it works, it gives you a visual way of doing things. CLI lets you do things directly with your computer.



For example, from GUI you can start two browsers, and then drag a file from one window (maybe USB drive) and drop it in another (maybe your home folder)



alternatively you could type 'cp /media/usb/filename /home/filename'



The CLI will use a great deal less resources, and works on computers which don't have enough power to drive a monitor or display graphics. It is a far more direct link to your computer - as in Matrix - it's like seeing the green code rather than having a fake environment imposed on top of the code. Direct drive instead of remote control.



Generally, CLI can perform all tasks possible in a system, whearas GUI cannot - and it needs programs to be specially coded - with extra code and complexity to make it display stuff on a screen.



One example of this is the very famous 'Crunchy' in linux - we have lots of sexy widgets, and ways to display things on desktop, but the best by far is called 'conky' which can easily be edited to show any information in a very direct way.



I can browse internet using 'elinks' which is a very small program (around 300kb) and can browse internet from a CLI window - I can use Yahoo Answers with this software.
Ngo Cong Huan
2009-01-12 11:56:43 UTC
The Command line Interface you need:

+)Remember the all commands and their parameter ,order them and perform them sequence to get your goal.Often you can't see what happen with your command while it's performing.

Just using keyboard to interact with your PC.

+)GUI:

Use Mouse(usually) and Keyboard to interact with your PC,After you chose a command from menu,you can see the effect immediately...

And very easy to using,don't need to remember each command. Just chose option you see.
2009-01-12 11:59:03 UTC
whay not get the answer online there are many websites for GUI and Java interface. Good luck


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...