Linux compatibility in FreeBSD

Linux compatibility in FreeBSD makes FreeBSD running smoother and enables to use many good programs in FreeBSD.

https://docs.freebsd.org/en/books/handbook/linuxemu/

For /etc/rc.conf line

sysrc linux_enable="YES"

The current content of /compat/linux can be checked executing the following command:

ls -l /compat/linux/

sudo pkg install linux-sublime-text4

sudo pkg install linux_base-rl9

sudo kldload linux64.ko

sudo pkg upgrade

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246460

After installing and rebooting the package, the contents of /compat/linux can be verified by running the following command to check that the Rocky Linux userland has been installed:

ls -l /compat/linux/

Also /etc/fstab is good to edit. My /etc/fstab

# Device Mountpoint FStype Options Dump Pass#
/dev/ada0s1a / ufs rw 1 1
/dev/cd0 /cdrom cd9660 ro,noauto 0
procfs /proc procfs rw 0 0
linprocfs /compat/linux/proc linprocfs rw 0 0
tmpfs /tmp tmpfs rw,mode=1777 0 0
linsysfs /compat/linux/sys linsysfs rw 0 0
fdesc /dev/fd fdescfs rw 0 0