Which of the following is your preferred choice for command line and GUI?

Source: Internet
Author: User

BKJIA featured translations] in the Linux Desktop field, the graphic user interface has been criticized, and old users often complain. However, we should be realistic. In particular, Gnome, KDE, Xfce and other desktop systems have made great efforts in recent years. Otherwise, Linux will not achieve today's achievements.

With the graphic interface, we no longer need to remember complex commands. According to statistics, 80% of common tasks can be completed in the graphic interface. Even so, the command line still has its unique advantages. Although the command line is generally considered a prehistoric animal, it does provide you with more options than the graphic interface.

In fact, for many management tasks, the use of command lines is simpler than the graphical interface. After checking my Bash History, I found that I prefer to use command lines instead of graphical interfaces in at least five cases.

1. File Management

Whether you want to copy, move, or delete files, Bash shell is always better than the KDE's doldolphin and Gnome's Nautilus. These graphic interface file management tools will pop up the prompt dialog box constantly, it treats you as a rookie. In addition, menus and toolbar have very few symbolic links, and most Desktop Users seldom know their existence or when to use them.

In contrast, it is much easier to use commands, such as the Copy command cp. First, you can decide whether to display the confirmation prompt, such as the confirmation of File Overwrite. If you want to archive or back up files, you can create a symbolic link instead of copying it, and you do not need to consider whether to save the file attributes. Other file management commands have the same rich functions.

When you move a large number of files, the Desktop may not be able to move. You can only wait for the migration to complete. During this period, you cannot do other things. Worse, you cannot guarantee that the mobile operation will succeed, these problems do not occur in the command line.

2. List Files and attributes

Similar to the file management command, the ls command provides more content than any graphical interface tool. Indeed, the ls command cannot display the file type icon, but can represent different file types with colors and symbols.

Ls also has all the filters of the graphic interface tool, including whether to display hidden and backup files, and can also be sorted by extension, file size, modification time, and file version.

I prefer ls, especially its-l and-g parameters. They make all the attributes of the file display on one line.

In contrast, it is impossible for you to view all attributes on an interface when using a graphic tool. As for the latest graphic interface tool, you may need to click the file attribute multiple times.

3. Use crontab to schedule a job

Some applications can directly flash the graphic interface, such as Apache, which has hundreds of configuration options. Although there are graphical configuration tools, I generally do not use them. Another example is crontab, I have studied its graphical interface tool crontag, And I have concluded that it will never replace the command line tool.

4. install the software package

Both apt-get and yum provide corresponding graphic operation interfaces. I 'd like to say they are actually used by cainiao. When you need to process a large number of files, neither Synaptic nor Ubuntu can help.

In addition, if you want to install something immediately after a user logs on, it usually conflicts with the update applet. At this time, you either wait or decide to stop one of them.

Even in the best state, the graphical interface software package management tool does not have enough advantages over the command line tool. The command line tool is easy to learn and provides richer information, especially based on. this is especially true for deb systems. For many people, when it comes to command line, they are very scared. When it comes to the graphic interface, they always feel very relaxed. This is caused by the inertia of people, in fact, as long as you stick to the command line, it will not take long for you to abandon the graphic interface, or the world will not have such Command Control.

5. Incomplete functions of graphic interface tools

Sometimes graphical interface operations are more comfortable, but sometimes you have to pick up the command line tool, because the graphical tool has not evolved to completely replace the command tool, some operations are not implemented at all in the graphic interface.

The graphic interface is designed for general users. It is best for administrators to use commands. This is not feasible because in all releases, the functions of the management tools provided under the graphic interface are limited.

In fact, many command line tools do not have a graphic interface, including NIS, SSH, and modprobe, especially those that involve system parameter settings, network settings, and system security settings, the command line can definitely help you complete the task by 100%, and the graphic interface tool is hard to say.

Personally, I like Debian dpkg-reconfigure very much. It provides a text-based interface to reconfigure the main subsystems, such as video or area settings, however, I don't know why Ubuntu is trying to degrade dpkg-reconfigre. What's more, Ubuntu's graphics tool is not ready for use.

BEST Tool

Although the command line is so good, only a few Linux Desktop Users like it. The strange thing is that those who have been relying on graphical interfaces for a long time live as experts, I am ashamed of myself. It's a bit ridiculous. It is undeniable that the graphic interface is especially advantageous when visual display is required. This is why I am not familiar with LaTeX. In fact, if you are willing to stick to it, you can arrange the version using LaTeX, of course, some people do this. I don't use it because I think it is more time-saving to use graphical interfaces.

But now there is a big problem. Almost all Linux vendors are trying to eliminate the command line. They want users to stay on the graphic interface forever. Some even suggest writing the graphic desktop to the Linux kernel, I don't know if this day will come, because the command line tools I like may suddenly stop development. I think I want to complain about these vendors here, there must be a lot of people who stick to me.

Finally, what I want to say is that, whether it is a graphical interface tool or a command line tool, it is only the best.

Original article: http://itmanagement.earthweb.com/osrc/article.php/3894231/Linux-Desktop-Command-Line-vs-User-Interface.htm

Bkjia.com: the source and source of the original article .]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.