In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "what are the differences between freebsd and linux". In daily operation, I believe many people have doubts about the differences between freebsd and linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "what are the differences between freebsd and linux?" Next, please follow the editor to study!
The difference between freebsd and linux: 1, the Linux operating system is based on the GPL license, while freebsd is released under the BSD license; 2, the code of freebsd is not controlled by anyone, while the kernel of Linux is basically controlled by the founder.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
What's the difference between freebsd and linux?
Brief introduction
BSD originally inherited from UNIX, and at present, there are many Unix-like operating systems based on BSD. FreeBSD is the most widely used open source Berkeley software distribution (BSD distribution). As it implies, it is a free and open source Unix-like operating system and a public server platform. FreeBSD source code is usually released under a loose BSD license. It has many similarities with Linux, but we have to admit that they are still different in many ways. The rest of this article is organized as follows: FreeBSD is described in part 1, the similarities between FreeBSD and Linux are in part 2, their differences are discussed in part 3, and their functions are discussed and summarized in the last section.
History
The first version of FreeBSD was released in 1993, and its first CD-ROM, FreeBSD1.0, was released in December 1993. Next, FreeBSD 2.1.0 was released in 1995 and won the favor of all users. In fact, many IT companies use FreeBSD and are satisfied, and we can list some of them: IBM, Nokia, NetApp, and Juniper Network.
License
With regard to its license, FreeBSD is released under a variety of open source licenses, and its latest code, called Kernel, is released as a two-sentence version of the BSD license, giving absolute freedom to use and redistribute FreeBSD. Other code is released under the three-sentence or four-sentence BSD license, some under the GPL and CDDL licenses. (the BSD license is quite short compared with the GPL license, with only four sentences at first; in 1999, at the request of RMS, the third sentence was deleted, and the new license was called "new BSD" or the three-sentence version of BSD;. The original BSD license was called "old BSD", "revised BSD" or four-sentence version of BSD;. There is also a version with the deletion of the third and fourth sentences, called the two-sentence version BSD, which is equivalent to the MIT license. )
User
One of the important features of FreeBSD is the diversity of its users. In fact, FreeBSD can be used as a mail server, Web server, FTP server, router, etc. You only need to run service-related software on it. FreeBSD also supports ARM, PowerPC, MIPS, x86, x86-64 architectures.
Similarities between FreeBSD and Linux
FreeBSD and Linux are two free and open source software. In fact, their users can easily check and modify the source code, and users have absolute freedom. Moreover, FreeBSD and Linux are Unix-like systems, and their kernels, internal components, and library programs all use algorithms inherited from the historical AT&T Unix. FreeBSD is fundamentally more like a Unix system, while Linux is released as a free Unix-like system. Many tool applications can be found in FreeBSD and Linux, and in fact, they have almost the same functionality. In addition, FreeBSD can run a large number of Linux applications. It can install a Linux compatibility layer, which can be obtained by adding AAC Compact Linux when compiling FreeBSD, or by downloading a FreeBSD system that has compiled the Linux compatibility layer, which will include a compatible program: aac_linux.ko. Unlike FreeBSD, Linux cannot run FreeBSD's software.
Finally, we note that although the two have the same goals, there are still some differences, which we list in the next section.
The difference between FreeBSD and Linux
At present, for most users, there is no clear criterion for choosing FreeBSD or Linux. Because they have many of the same applications, because they are all called Unix-like systems.
In this chapter, we will list some important differences between the two systems.
License
The difference between the two systems is first of all their licenses. Linux is distributed under the GPL license, which gives users the freedom to read, distribute, and modify the source code, and the GPL license helps users avoid just issuing binaries. While FreeBSD is issued under the BSD license, the BSD license is more lenient than GPL because its derivative works do not need to still be published under that license. This means that any user can use, publish, and modify the code without having to maintain the previous license.
You can choose one of the two licenses according to your needs. The first is the BSD license, which is more popular with users because of its special terms. In fact, this license allows users to sell software released under the license while keeping the source code closed. Turning to GPL, it requires the attention of every user who uses software released under that license.
If you want to choose between two kinds of software released under different licenses, you need to understand their respective licenses and the methodology in their development, so that you can understand the differences in their characteristics and choose the ones that better suit your needs.
Control
Because FreeBSD and Linux are released under different licenses, Linus Torvalds controls the kernel of Linux, while FreeBSD is not controlled, unlike Linux. I personally prefer to use FreeBSD rather than Linux because FreeBSD is absolutely free software and there is no controller. There are other differences between Linux and FreeBSD, and I suggest you don't rush to make a choice until you finish reading this article.
Operating system
Linux mainly refers to the kernel system, which is different from FreeBSD, the entire system of FreeBSD is maintained. The FreeBSD kernel and a set of software developed by the FreeBSD team are maintained as a whole. In fact, FreeBSD developers can manage the core operating system remotely and efficiently.
As for Linux, there are some difficulties in managing the system. Because different components are maintained by different sources, Linux developers need to bring them together to achieve the same functionality.
Both FreeBSD and Linux give users a large number of software options and distributions, but they manage them differently. FreeBSD is a unified management method, while Linux needs to be maintained separately.
Hardware support
When it comes to hardware support, Linux does better than FreeBSD. But that doesn't mean FreeBSD doesn't have the ability to support hardware like Linux. They are just managed differently, which usually depends on your needs. Therefore, if you are looking for the latest solution, FreeBSD suits you better; but if you are looking for more universality, it is best to use Linux.
Native FreeBSD Vs native Linux
The differences between the two native systems are different. As I said before, Linux is an alternative system for Unix, written by Linus Torvalds and implemented with the help of many geeks on the Internet. Linux has all the functions required by a modern system, such as virtual memory, shared libraries, dynamic loading, excellent memory management, and so on. It is released under the GPL license.
FreeBSD also inherits many important features of Unix. FreeBSD is a distribution of BSD developed at the University of California. The most important reason for developing BSD is to replace the AT&T operating system with an open source system, thus giving users the ability to use it without an AT&T license.
The issue of license is what developers are most concerned about. They are trying to provide an open source system that maximizes cloning of Unix. This affects the choice of users, and because FreeBSD is released under a BSD license, it is freer than Linux.
Supported software packages
From a user's point of view, another difference between the two is the availability and support of the Firmware package and software installed from the source code. Linux provides only precompiled binaries, unlike FreeBSD, which provides not only precompiled packages, but also a build system that is compiled and installed from source. With its ports tool, FreeBSD gives you the option of using precompiled packages (the default) and the ability to customize your software at compile time. These ports allow you to build all the software that supports FreeBSD. Moreover, their management is hierarchical, and you can find the address of the source file and some documents that use FreeBSD correctly under / usr/ports.
These mentioned ports give you the possibility of producing different versions of the package. FreeBSD gives you two kinds of software that are built and precompiled from source code, rather than precompiled software packages like Linux. You can use two installation methods to manage your system.
Comparison of common tools between FreeBSD and Linux
There are a large number of common tools available on FreeBSD, and interestingly, they are owned by the FreeBSD team. On the contrary, the Linux tool comes from GNU, which is why there are some limitations in use. (this is why the official name of Linux is called "GNU/Linux", because in essence Linux only refers to the kernel. )
In fact, the BSD license adopted by FreeBSD is very useful and useful. Therefore, you have the ability to maintain the core operating system and control the development of these applications. Some tools are similar to those of their ancestors, BSD and Unix, but unlike GNU suites, GNU suites only want to be minimally backward compatible.
Standard Shell
FreeBSD uses tcsh by default. It is an evaluated version of csh, and since FreeBSD is distributed under the BSD license, it is not recommended that you use bash shell, a component of GNU. The only difference between bash and tcsh is the scripting capabilities of tcsh. In fact, I prefer to use sh shell in FreeBSD because it is more reliable and avoids some of the scripting problems that occur when using tcsh and csh.
A more hierarchical file system
As mentioned earlier, when using FreeBSD, the basic operating system and optional components can be easily distinguished. This leads to some of the standards that govern them. Under Linux, / bin,/sbin,/usr/bin or / usr/sbin are the directories where executable files are stored. Unlike FreeBSD, it has some additional specifications for organizing it. The underlying operating system is placed in the / usr/local/bin or / usr/local/sbin directory. This approach helps manage and distinguish between the underlying operating system and optional components.
At this point, the study on "what is the difference between freebsd and linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.