FreeBSD for Linux Users

28/12/2020
Chưa phân loại

Comparative Introduction To FreeBSD For Linux Users

In this lesson on FreeBSD for Linux users, we will try to provide a comparative introduction to the FreeBSD platform. This is completely subjective and we encourage you to provide your thoughts to us by tweeting to @linuxhint. Let’s get started.

Overview

Just like platforms in Unix, FreeBSD is an excellent server platform and is a popular one as well. There are many similarities in FreeBSD but their are important points where these two platforms differ significantly!

Before starting, just note that though we will mention points for the BSD family, we will still narrow down our focus to the FreeBSD version for the platform.

Similarities in FreeBSD and Linux

To start, we will share similarities between these two popular platforms.

  • Both these platforms share free and open source licensing and communities. Developers around the globe are free to modify the source code and even release their own custom version for any of these.
  • Both of these platforms are extremely similar to Unix when it comes to their nature of definition. Linux was created from the ground up as an Unix substitute and is free. The association of Linux with Unix defines how the system was similarly designed and making the shell environments the prime way to interact with the OS and define actions.
  • Both of these platforms are POSIX The file system of these platforms are based on hierarchies and even the APIs for programming share extremely similar design patterns.
  • Due to similarities in the programming API of these two platforms, even the tools and apps available for one platform are usually available for the other too. This is because the application is very easy to be ported back and forth from one platform to another.

It sounds like these two platforms are extremely similar in nature when it comes to user usage. But don’t get too excited about the similarities, there are important difference in these platforms as well. Let’s get to them now.

Source Installations

This is one of the major area where these two platforms stand apart. While the Linux platform versions gives only the pre-compiled binary packages of the distribution-supported software, the FreeBSD platform have both pre-built packages and a build system as well for compiling and installing from the source.

If you’re wondering what this means, this separation allows us to select among the pre-compiled packages made with provided defaults and an ability to modify the software during compilation process by building it at our end. FreeBSD achieves the same through a system termed as “ports”.

Shell Differences

We all know that the default shell in Linux is usually the bash shell. Well, this is not the case with FreeBSD version where the default shell is the tcsh shell.

For tcsh, it an ungraded and improved version of the csh shell which is the C shell environment for the BSD platform. Though both shells acts in same way (well, almost) but the tcsh shell is highly NOT recommended for scripting purposes. Using the bash shell is much more reliable and it avoids many drawbacks with the tcsh shell scripting.

Filesystem Differences

As the FreeBSD distinguishes the base OS and components, it starts presenting consequences in the file hierarchy of the platform.

As know for Linux that executable files are present in the directories:

  • /bin
  • /sbin
  • /usr/bin
  • /usr/sbin

The location differs on the basis of functionality the executable provides. FreeBSD has more thorough difference recognition in this case and also forces another rule for separating them on the basis of base system and installation through ports.

Any software installed through ports are placed in:

  • /usr/local/bin
  • /usr/local/sbin directories

Conclusion

As we have seen, FreeBSD and Linux platforms share many similarities and differences but still, in the beginning, FreeBSD can be very familiar to a Linux user.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Telnet to a Specific Port for Testing Purposes

Telnet is both a protocol allowing us to access a remote device to control it and the program used to connect through this...
29/12/2020

Apt Package Management Tool

Your Linux machine is only as good as you make it. To make it into a powerful machine, you need to install the right packages,...
29/12/2020

[DirectAdmin] Hướng dẫn backup website lên Direct Admin (phần 4)

Direct Admin (DA) là công cụ để quản trị hosting tuyệt vời. Để nối tiếp chuỗi bài hướng dẫn...
30/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Mua proxy v4 chạy socks5 để chơi game an toàn, tốc độ cao ở đâu?
18/05/2024

Thuê mua proxy Telegram trọn gói, tốc độ cao, giá siêu hời
18/05/2024

Thuê mua proxy Viettel ở đâu uy tín, chất lượng và giá tốt? 
14/05/2024

Dịch vụ thuê mua proxy US UK uy tín, chất lượng số #1
13/05/2024

Thuê mua proxy Việt Nam: Báo giá & các thông tin MỚI NHẤT
13/05/2024