User osetc shows us how to set up or export your environment variable on your FreeBSD operating system. The csh shell is used along with command line tools setenv (Set Environment). See the link below for the full set of instructions.
List Current Environment Variable
The default shell program for FreeBSD system is csh. And there is no
exportcommand to export environment variable directly. So if you want to set shell variable in your FreeBSD shell prompt, and you need to use another command called
Let’s check the default shell program by running the following command:$ cat /etc/passwd | grep ^root