PARS ENTERPRISE⢠A PERSIAN MINIATURE ENCYCLOPEDIA
No adult sexual content is presented; however, due to the nature of the conceptual & philosophical art, a minimum age of 16 is required for entry and registration.
So what is really the difference between, say, Debian Linux and FreeBSD? For the average user, the difference is surprisingly small: Both are UNIXĀ® like operating systems. Both are developed by non-commercial projects (this does not apply to many other Linux distributions, of course). In the following section, we will look at BSD and compare it to Linux. The description applies most closely to FreeBSD, which accounts for an estimated 80% of the BSD installations, but the differences from NetBSD, OpenBSD and DragonFlyBSD are small.
Who owns BSD?
No one person or corporation owns BSD. It is created and distributed by a community of highly technical and committed contributors all over the world. Some of the components of BSD are Open Source projects in their own right and managed by different project maintainers.
How is BSD developed and updated?
The BSD kernels are developed and updated following the Open Source development model. Each project maintains a publicly accessible source tree which contains all source files for the project, including documentation and other incidental files. Users can obtain a complete copy of any version. A large number of developers worldwide contribute to improvements to BSD. They are divided into three kinds:
This arrangement differs from Linux in a number of ways:
BSD releases
FreeBSD, NetBSD and OpenBSD provide the system in three different āreleasesā. As with Linux, releases are assigned a number such as 1.4.1 or 3.5. In addition, the version number has a suffix indicating its purpose:
By contrast, Linux maintains two separate code trees: the stable version and the development version. Stable versions have an even minor version number, such as 2.0, 2.2 or 2.4. Development versions have an odd minor version number, such as 2.1, 2.3 or 2.5. In each case, the number is followed by a further number designating the exact release. In addition, each vendor adds their own userland programs and utilities, so the name of the distribution is also important. Each distribution vendor also assigns version numbers to the distribution, so a complete description might be something like āTurboLinux 6.0 with kernel 2.2.14ā
What versions of BSD are available?
In contrast to the numerous Linux distributions, there are only four major open source BSDs. Each BSD project maintains its own source tree and its own kernel. In practice, though, there appear to be fewer divergences between the userland code of the projects than there is in Linux. It is difficult to categorize the goals of each project: the differences are very subjective. Basically,
There are also two additional BSD UNIXĀ® operating systems which are not open source, BSD/OS and Apple's Mac OSĀ® X:
How does the BSD license differ from the GNU Public license?
Linux is available under the GNU General Public License (GPL), which is designed to eliminate closed source software. In particular, any derivative work of a product released under the GPL must also be supplied with source code if requested. By contrast, the BSD license is less restrictive: binary-only distributions are allowed. This is particularly attractive for embedded applications.
What else should I know?
Since fewer applications are available for BSD than Linux, the BSD developers created a Linux compatibility package, which allows Linux programs to run under BSD. The package includes both kernel modifications, in order to correctly perform Linux system calls, and Linux compatibility files such as the C library. There is no noticeable difference in execution speed between a Linux application running on a Linux machine and a Linux application running on a BSD machine of the same speed.
The āall from one supplierā nature of BSD means that upgrades are much easier to handle than is frequently the case with Linux. BSD handles library version upgrades by providing compatibility modules for earlier library versions, so it is possible to run binaries which are several years old with no problems.
Which should I use, BSD or Linux?
What does this all mean in practice? Who should use BSD, who should use Linux? This is a very difficult question to answer. Here are some guidelines:
Who provides support, service, and training for BSD?
BSDi / FreeBSD Mall, Inc. have been providing support contracts for FreeBSD for nearly a decade. In addition, each of the projects has a list of consultants for hire: FreeBSD, NetBSD, and OpenBSD.
Debian GNU/Linux adheres to the Filesystem Hierarchy Standard for directory and file naming. This standard allows users and software programs to predict the location of files and directories. The root level directory is represented simply by the slash /. At the root level, all Debian systems include these directories:
| Directory | Content |
| bin | Essential command binaries |
| boot | Static files of the boot loader |
| dev | Device files |
| etc | Host-specific system configuration |
| home | User home directories |
| lib | Essential shared libraries and kernel modules |
| media | Contains mount points for replaceable media |
| mnt | Mount point for mounting a file system temporarily |
| proc | Virtual directory for system information (2.4 and 2.6 kernels) |
| root | Home directory for the root user |
| sbin | Essential system binaries |
| sys | Virtual directory for system information (2.6 kernels) |
| tmp | Temporary files |
| usr | Secondary hierarchy |
| var | Variable data |
| srv | Data for services provided by the system |
| opt | Add-on application software packages |
The following is a list of important considerations regarding directories and partitions. Note that disk usage varies widely given system configuration and specific usage patterns. The recommendations here are general guidelines and provide a starting point for partitioning.
The FreeBSD directory hierarchy is fundamental to obtaining an overall understanding of the system. The most important directory is root or, ā/ā. This directory is the first one mounted at boot time and it contains the base system necessary to prepare the operating system for multi-user operation. The root directory also contains mount points for other file systems that are mounted during the transition to multi-user operation.
A mount point is a directory where additional file systems can be grafted onto a parent file system (usually the root file system). This is further described in āDisk Organizationā. Standard mount points include /usr/, /var/, /tmp/, /mnt/, and /cdrom/. These directories are usually referenced to entries in /etc/fstab. This file is a table of various file systems and mount points and is read by the system. Most of the file systems in /etc/fstab are mounted automatically at boot time from the script rc unless their entry includes noauto. Details can be found in āThe fstab Fileā.
A complete description of the file system hierarchy is available in hier. The following table provides a brief overview of the most common directories.
| Directory | Description |
| / | Root directory of the file system. |
| /bin/ | User utilities fundamental to both single-user and multi-user environments. |
| /boot/ | Programs and configuration files used during operating system bootstrap. |
| /boot/defaults/ | Default boot configuration files. Refer to loader.conf for details. |
| /dev/ | Device nodes. Refer to intro for details. |
| /etc/ | System configuration files and scripts. |
| /etc/defaults/ | Default system configuration files. Refer to rc for details. |
| /etc/mail/ | Configuration files for mail transport agents such as sendmail. |
| /etc/periodic/ | Scripts that run daily, weekly, and monthly, via cron. Refer to periodic for details. |
| /etc/ppp/ | ppp configuration files. |
| /mnt/ | Empty directory commonly used by system administrators as a temporary mount point. |
| /proc/ | Process file system. Refer to procfs, mount_procfs for details. |
| /rescue/ | Statically linked programs for emergency recovery as described in rescue. |
| /root/ | Home directory for the root account. |
| /sbin/ | System programs and administration utilities fundamental to both single-user and multi-user environments. |
| /tmp/ | Temporary files which are usually not preserved across a system reboot. A memory-based file system is often mounted at /tmp. This can be automated using the tmpmfs-related variables of rc.conf or with an entry in /etc/fstab; refer to mdmfs for details. |
| /usr/ | The majority of user utilities and applications. |
| /usr/bin/ | Common utilities, programming tools, and applications. |
| /usr/include/ | Standard C include files. |
| /usr/lib/ | Archive libraries. |
| /usr/libdata/ | Miscellaneous utility data files. |
| /usr/libexec/ | System daemons and system utilities executed by other programs. |
| /usr/local/ | Local executables and libraries. Also used as the default destination for the FreeBSD ports framework. Within /usr/local, the general layout sketched out by hier for /usr should be used. Exceptions are the man directory, which is directly under /usr/local rather than under /usr/local/share, and the ports documentation is in share/doc/port. |
| /usr/obj/ | Architecture-specific target tree produced by building the /usr/src tree. |
| /usr/ports/ | The FreeBSD Ports Collection (optional). |
| /usr/sbin/ | System daemons and system utilities executed by users. |
| /usr/share/ | Architecture-independent files. |
| /usr/src/ | BSD and/or local source files. |
| /var/ | Multi-purpose log, temporary, transient, and spool files. A memory-based file system is sometimes mounted at /var. This can be automated using the varmfs-related variables in rc.conf or with an entry in /etc/fstab; refer to mdmfs for details. |
| /var/log/ | Miscellaneous system log files. |
| /var/mail/ | User mailbox files. |
| /var/spool/ | Miscellaneous printer and mail system spooling directories. |
| /var/tmp/ | Temporary files which are usually preserved across a system reboot, unless /var is a memory-based file system. |
| /var/yp/ | NIS maps. |