The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
 

  Get to know Linux

1.0 The Story of UNIX/Linux
       UNIX
       GNU
       Linux
1.1 The Attitude of Learning Linux
1.2 Linux Has Entered the Homes of Ordinary People
1.3 Understanding Linux Distributions
       Installing Linux/Choosing the Right Learning Environment
           Bare Metal Installation
           Virtual Machine Installation
           Utilizing a Hard Drive Enclosure

ENG⇒中ENG⇒中
 

^ back on top ^

1.0 The Story of UNIX/Linux
Many people may not realize that the foundation of today's computer technology, from hardware components like transistors and lasers to software languages like C/C++ and operating systems like UNIX, were invented by AT&T, a telecommunications company in the United States. So what is the relationship between UNIX and Linux?
.
UNIX
UNIX is a powerful and versatile operating system originally developed in the 1960s and 1970s at Bell Labs by Ken Thompson, Dennis Ritchie, and their colleagues. It has had a significant impact on the development of modern computing and continues to be widely used today.

One of the defining features of UNIX is its design philosophy, which emphasizes simplicity, modularity, and the use of small, independent programs that can be combined to perform complex tasks. This approach, known as the "Unix philosophy," encourages the creation of tools that do one thing well and can be combined using shell scripting to achieve more complex functionality.

UNIX provides a multi-user, multi-tasking environment, allowing multiple users to work on the system simultaneously and run multiple programs concurrently. It introduced the concept of hierarchical file systems, where files and directories are organized in a tree-like structure, and everything is treated as a file.

Another key aspect of UNIX is its command-line interface, which allows users to interact with the system using textual commands entered in a terminal. This provides a flexible and efficient way to perform various tasks and automate operations through scripting.

Over the years, UNIX has evolved into different variants or flavors, including the original AT&T UNIX, BSD (Berkeley Software Distribution), and numerous commercial and open-source versions like Linux and macOS (which is based on BSD and NeXTSTEP, a UNIX-like system). These variants have added their own features and modifications while retaining the core principles and compatibility with existing UNIX software.

UNIX has found widespread use in various domains, such as servers, mainframes, supercomputers, embedded systems, and scientific research. It is highly regarded for its stability, security, scalability, and flexibility, making it a preferred choice for many applications and industries.

Overall, UNIX has had a profound influence on the development of operating systems, software engineering practices, and the culture of computing. Its philosophy and principles continue to shape the way modern systems are designed and operated, making it a fundamental part of the history and ongoing development of computing technology.



GNU
GNU, which stands for "GNU's Not Unix," is a project initiated by Richard Stallman in 1983 with the goal of creating a free and open-source Unix-like operating system. The project's name is a recursive acronym, highlighting its inspiration from Unix but emphasizing that it is not a direct copy.

The GNU project aimed to develop a complete and fully functional operating system composed entirely of free software. Free software refers to software that grants users the freedom to use, study, modify, and distribute it. Stallman believed that software users should have these fundamental freedoms and that proprietary software restricted users' control over their own computers.

The GNU project encompassed a wide range of components, including a kernel, compilers, editors, utilities, and libraries. However, the kernel, called GNU Hurd, initially faced delays in development. To overcome this obstacle and provide a complete system, the GNU project teamed up with the Linux kernel, developed independently by Linus Torvalds, in the early 1990s. This combination of GNU software and the Linux kernel resulted in what is commonly referred to as "GNU/Linux" or simply "Linux."

GNU's contributions to the world of software extend beyond the development of an operating system. The project also developed the GNU General Public License (GPL), a widely used free software license that ensures the freedom of users to modify and distribute software. The GPL has had a profound impact on the open-source software movement and has inspired the creation of many other free and open-source software projects.

The GNU project's philosophy and advocacy for software freedom have played a significant role in shaping the software industry. It has fostered a community of developers dedicated to creating and promoting free software. Numerous GNU tools and utilities, such as the GNU Compiler Collection (GCC), GNU Bash (shell), GNU Emacs (text editor), and many others, are widely used in both GNU/Linux systems and other operating systems.

Overall, the GNU project's mission to develop a free and open-source operating system has had a lasting impact on the software industry, inspiring the creation of numerous free software projects and promoting the ideals of software freedom.



Linux
Linux is an open-source operating system kernel that was originally developed by Linus Torvalds in 1991. It is a Unix-like operating system kernel that forms the core component of various Linux distributions, commonly referred to as "Linux distros." The combination of the Linux kernel with the GNU software from the GNU project (hence the term "GNU/Linux") created a complete operating system that is widely used today.

Linux is known for its stability, security, and scalability, and it is used in a wide range of devices and systems, from personal computers to servers, mobile devices, embedded systems, and even supercomputers. Its flexibility and modularity allow it to be adapted to different hardware architectures and customized to suit specific needs.

One of the key features of Linux is its open-source nature. The source code of the Linux kernel and most Linux distributions is freely available, allowing users and developers to study, modify, and distribute it. This fosters a vibrant and collaborative community of developers who contribute to its continuous improvement and development.

The success and popularity of Linux can be attributed to its robustness, security, customizability, and the vibrant open-source community surrounding it. It has become a prominent player in the world of operating systems, serving as the foundation for many technological innovations and powering critical infrastructure across the globe.



^ back on top ^

1.1 The Attitude of Learning Linux

One day, Buddha tested his disciple's mathematical skills with an interesting question in the "THE DIAMOND OF PERFECT WISDOM SUTRA" The sutra stated, "“Subhuti, what do you think? If there were as many Ganges Rivers as the grains of sand in the Ganges, wouldn’t the amount of sand contained in all those Ganges Rivers be great?"

In mathematical terms, it can be translated as, "Subhuti, the quantity of sand in the Ganges River multiplied by the quantity of sand in the Ganges River equals how many grains of sand? Is it many or few?"

Two thousand years later, another deity called "Google" calculated the answer to Buddha's mathematical problem. Upon entering "恆河沙 * 恆河沙" (Ganges River sand multiplied by Ganges River sand) into Google, the answer came out as "1.0 x 104 "

Google's "divine revelation" of the Ganges River sand quantity being 1052 ? The divine revelation is always cryptic and hard to understand. Why isn't it 1040 or 1020 ? Well, there's no way to refute it anyway. For humans, both 1020 and 1040 are already considered infinite, so 1052 is also infinite.

For example, if I owe someone 100 million, 1 billion, or even 10 billion, it's all the same. A dead pig doesn't fear boiling water; in any case, I can't repay it, so I can only shrug and give up.

Returning to Buddha's question, "Ganges River sand quantity multiplied by Ganges River sand quantity" can be mathematically interpreted as ∞ * ∞ = ∞. Therefore, Ganges River sand quantity * Ganges River sand quantity = Ganges River sand quantity (infinity multiplied by infinity still equals infinity). Hence, "沙等恆河沙" (as many Ganges Rivers as the grains of sand in the Ganges is equivalent to "恆河沙" (Ganges River sand).

What does Ganges River sand have to do with Linux? It is often said, "There are no secrets before the source code." Although Linux is touted as open-source, it is full of secrets. Open-source is equivalent to not open-source because the released source code is as numerous as the grains of sand in the Ganges River.

When Torvalds initially released the kernel, it only consisted of about 10,000 lines of source code. However, through the collective efforts of various heroes, its growth can only be described as remarkable. For example, the Kernel version 2.6.12 released in 2005 had nearly 7 million lines of source code, while the version 2.6.30 released four years later surged to over 10 million lines of source code.

The following table shows the versions of the Linux Kernel and the corresponding number of lines of source code:

Kernel version source line of code
Kernel Version Files Lines Release Date
(YY/MM/DD)
2.6.12  17,360 6,777,860 2005/05/17
2.6.13 18,090 6,988,800 2005/08/28
2.6.14  18,434 7,143,233 2005/10/27
2.6.15 18,811 7,290,070 2006/01/02
2.6.16  19,251 7,480,062 2006/03/19
2.6.17 19,553 7,588,014 2006/06/17
2.6.18  20,208 7,752,846 2006/09/19
2.6.19 20,936 7,976,221 2006/11/29
2.6.20 21,280 8,102,533 2007/02/04
2.6.21  21,614 8,246,517 2007/04/25
2.6.22 22,411 8,499,410 2007/07/08
2.6.23  22,530 8,566,606 2007/10/09
2.6.24  23,062 8,859,683 2008/01/24
2.6.25 23,813 9,232,592 2008/04/16
2.6.26 24,273 9,411,841 2008/07/13
2.6.27 24,356 9,630,074 2008/10/09
2.6.28  25,276 10,118,757 2008/12/24
2.6.29 26,702 10,934,554 2009/03/23
2.6.30 27,911 11,560,971 2009/06/09

On January 1, 2020, it was updated that the Linux source code has surged to 27.8 million lines. (Source: https://www.phoronix.com/news/Linux-Git-Stats-EOY2019)"



Regardless of whether Linux's source code consists of 7 million or over 10 million lines, it is infinite to the average person. The source code of Linux, with its vastness comparable to the grains of sand in the Ganges River, represents the ability and complexity of possessing a Ganges River's worth of sand.

In the "First Discourse on Emptiness," faced with the infinite mathematical problem of the "sands of the Ganges," Subhuti's approach would be to embrace the concept of boundless emptiness.

The Chinese philosopher Zhuangzi (莊子) said, "My life has its boundaries, but knowledge has no boundary. To use the limited to pursue the unlimited is perilous. This can also be applied to Linux: "My life has its boundaries, but Linux has no boundary. To use the limited to follow the unlimited is perilous."

Therefore, for those who wish to learn and study Linux, it is impossible to comprehend all its functionalities within one's lifetime. Thus, the attitude towards learning the capabilities and complexities of Linux, which are comparable to a Ganges River's worth of sand, should be to modify "Grains of sand in the Ganges equals the Ganges River"("沙等恆河" 改 "沙等於恆河"). Study and explore the intricacies of a single grain of sand, as it encompasses the understanding of the entire Ganges River. Focus on studying one grain of sand at a time, as each grain of sand represents a world in itself.

Therefore, as a user, you can choose one or two specific areas of interest to begin with. You can start by using Linux to replace Windows for your daily tasks, or delve into understanding Linux network architecture, Shell scripting, or specific principles of the kernel, and so on.



^ back on top ^

1.2 Linux Has Entered the Homes of Ordinary People

European Union (EU) statistics based on analyzed internet traffic in 2011 revealed that Linux had a market share of approximately 0.9% among PCs, while Windows dominated with an overwhelming 90% share, as shown in the table below.

PC OS Market Share 2011
OS Share
Windows 89.60%
Mac OS 8.70%
Linux 0.90%
Other 0.80%

The poor market share of Linux on PCs compared to Windows may make it seem like learning Linux is not useful. However, in a different arena, Linux can turn the tables.

According to the statistics from the "Top500" list of the world's fastest supercomputers, in 2010, Linux was used as the operating system in 91.8% of the top 500 supercomputers, with the top 30 all running Linux. Windows, on the other hand, only accounted for 3.8% of supercomputers. This reflects the fact that Linux/UNIX is much stronger than Windows in executing critical tasks and in environments that require multitasking and multiple CPUs.

The table below shows the market share of operating systems in the Top500 list of the world's fastest supercomputers (data source: http://www.top500.org).
TOP500 OS Market Share 2010
OS Share
Linux 91.8%
UNIX 3.8%
Winodws 3.2%
Other 0.2%

Perhaps supercomputers are too far away from us and not accessible to the average person. However, Linux is right beside you. Currently, the shipment volume of smartphones has exceeded that of PCs, and when it comes to smartphone operating systems, it can be said that Linux/UNIX dominates.

Apple's iPhone operating system, iOS, is actually UNIX-like, and smartphones from hTC/Samsung and others run Android, which directly utilizes the Linux kernel. In this field, Microsoft's Windows Mobile has a pitifully low market share of 7%, while Linux is no longer confined to supercomputers and has made its way into the hands of ordinary people.

The table below shows the market share of smartphone operating systems.



(data source: www.nielsen.com )
Share of worldwide 2011 Q3 smartphone by OS
OS Share
Android 40%
Apple iPhone iOS 32%
RIM 11%
Windows Mobile 7%
Other 3%
Unknow 7%

Last updated : June 23 2015
Linux distribution Ubuntu considered Microsoft's long-standing market dominance as its number one bug. With the rise of mobile devices, Linux's market share has surpassed that of Windows. Therefore, in May 2013, Ubuntu announced that this number one bug had been successfully fixed. [Note]:

^ back on top ^

 
1.3 Understanding Linux Distributions

For those who are accustomed to using Microsoft Windows, they may be familiar with mainstream Windows versions such as XP, Windows 7, and Windows 10. However, when it comes to Linux versions like Redhat, Fedora, Debian, GentOS, Ubuntu, and SUSE, it can be quite confusing.

Talking about UNIX/Linux, it's worth mentioning that the correct term for Linux should be GNU/Linux. It combines the efforts of two major camps, GNU and Linux. However, GNU/Linux, in reality, consists of the kernel, software libraries, and some utility programs. These are like "software components" that only expert hackers can assemble and use. Consequently, many companies, organizations, or individuals have taken on the task of assembling these software components, adding some application software, and releasing them as "Linux distributions".

According to unofficial statistics, there are currently over 200 active Linux distributions. Each distribution has its own specific goals, packaged application software, and user environments. Here are a few commonly seen Linux distributions in the domestic (Taiwanese) market.


^ back on top ^

Installing Linux/Choosing the Right Learning Environment
As the saying goes, "Seeing is believing, doing it yourself is even better!", and learn Linux, it is essential to have hands-on experience. Therefore, it is necessary to have a PC dedicated to learning Linux. Here, the choice and requirements for a Linux learning machine should prioritize the safety of the operational hard drive, ensuring that it is not jeopardized during the learning process.

^ back on top ^




 
[Note]Source of information〝Ubuntu Bug #1 Marked As Fixed By Mark Shuttleworth〞 http://www.webupd8.org/2013/05/ubuntu-bug-1-marked-as-fixed-by-mark.html