- Linux Mint Essentials
- Jay LaCroix
- 449字
- 2021-07-16 11:52:56
Why should we use the terminal?
With Mint containing a complete suite of graphical tools, one may wonder why it is useful to learn and use the terminal at all. Depending on the type of user, learning how to execute commands in a terminal may or may not be beneficial. If you are a user who intends to use Linux only for basic purposes such as browsing the Internet, checking e-mails, playing games, editing documents, printing, watching videos, listening to music, and so on, terminal commands may not be a useful skill to learn as all of these activities (as well as others) are best handled by a graphical desktop environment.
However, the real value of the terminal in Linux comes with advanced administration. Some administrative activities are faster using shell commands than using the GUI. For example, if you wanted to edit the /etc/fstab
file, it would take fewer steps to type sudo nano /etc/fstab
than it would to open a file manager with root permissions, navigate to the /etc
directory, find the fstab
file, and click on it to open it. This is especially true if all you want to do is make a quick change. Similarly, typing sudo apt-get install geany
may be faster if you already know the name of the package you want, compared to opening up Mint Software Manager, waiting for it to load, finding the geany
package, and installing it. On older and slower systems, the overhead caused by graphical programs may delay execution time.
Another value in the Linux Shell is scripting. With a script, you can create a text file with a list of commands and instructions and execute all of the commands contained within a single execution. For example, you can create a list of packages that you would prefer to install on your system, type them out in a text file, and add your distribution package's installation command at the beginning of the list. Now, you can install all of your favorite programs with a single command. If you save this script for later, you can execute it any time you reinstall Linux Mint so that you can immediately have access to all your favorite programs. If you are administering a server, you can create a script to check the overall health of the system at various times, check for security intrusions, or even configure servers to send you weekly reports on just about anything you'd like to keep yourself updated on. There are entire books dedicated to scripting, so we won't go in detail about it in this book. However, by the end of the chapter, we will create a script to demonstrate how to do so.
- Linux設備驅動開發詳解:基于最新的Linux4.0內核
- 嵌入式Linux驅動程序和系統開發實例精講
- 深入理解eBPF與可觀測性
- Windows 7中文版從入門到精通(修訂版)
- 嵌入式系統及其應用(第三版)
- 精解Windows 10
- Windows 7實戰從入門到精通(超值版)
- 統信UOS應用開發進階教程
- Linux網絡操作系統項目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- iOS 10快速開發:18天零基礎開發一個商業應用
- VMware vSphere 5.1 Cookbook
- Android NDK Beginner's Guide
- 大規模Linux集群架構最佳實踐:如何管理上千臺服務器
- 計算機應用基礎(Windows 7+Office 2010)
- BuddyPress Theme Development