<para>A lot of configuration in FreeBSD is done by editing text files.
Because of this, it would be a good idea to become familiar
with a text editor. FreeBSD comes with a few as part of the base
system, and many more are available in the Ports Collection.</para>
<indexterm>
<primary><command>ee</command></primary>
</indexterm>
<indexterm>
<primary>editors</primary>
<secondary><command>ee</command></secondary>
</indexterm>
<para>The easiest and simplest editor to learn is an editor called
<application>ee</application>, which stands for easy editor. To
start <application>ee</application>, one would type at the command
line <command>ee <replaceable>filename</replaceable></command> where
<replaceable>filename</replaceable> is the name of the file to be edited.
For example, to edit <filename>/etc/rc.conf</filename>, type in
<command>ee /etc/rc.conf</command>. Once inside of
<command>ee</command>, all of the
commands for manipulating the editor's functions are listed at the
top of the display. The caret <literal>^</literal> character represents
the <keycap>Ctrl</keycap> key on the keyboard, so <literal>^e</literal> expands to the key combination
<keycombo action="simul"><keycap>Ctrl</keycap><keycap>e</keycap></keycombo>. To leave
<application>ee</application>, hit the <keycap>Esc</keycap> key, then choose leave
editor. The editor will prompt you to save any changes if the file
has been modified.</para>
<indexterm>
<primary><command>vi</command></primary>
</indexterm>
<indexterm>
<primary>editors</primary>
<secondary><command>vi</command></secondary>
</indexterm>
<indexterm>
<primary><command>emacs</command></primary>
</indexterm>
<indexterm>
<primary>editors</primary>
<secondary><command>emacs</command></secondary>
</indexterm>
<para>FreeBSD also comes with more powerful text editors such as
<application>vi</application> as part of the base system, while other editors, like
<application>Emacs</application> and <application>vim</application>,
are part of the FreeBSD Ports Collection (<filename role="package">editors/emacs</filename> and <filename role="package">editors/vim</filename>). These editors offer much
more functionality and power at the expense of being a little more
complicated to learn. However if you plan on doing a lot of text
editing, learning a more powerful editor such as
<application>vim</application> or <application>Emacs</application>
will save you much more time in the long run.</para>
<para>Many applications which modify files or require typed input
will automatically open a text editor. To alter the default
editor used, set the <envar>EDITOR</envar> environment
variable. See <link linkend="shells">shells</link>
section for more details.</para>
</sect1>
<sect1 id="basics-devices">
<title>Devices and Device Nodes</title>
<para>A device is a term used mostly for hardware-related
activities in a system, including disks, printers, graphics
cards, and keyboards. When FreeBSD boots, the majority
of what FreeBSD displays are devices being detected.
You can look through the boot messages again by viewing
<filename>/var/run/dmesg.boot</filename>.</para>
<para>For example, <devicename>acd0</devicename> is the
first IDE CDROM drive, while <devicename>kbd0</devicename>
represents the keyboard.</para>
<para>Most of these devices in a &unix; operating system must be
accessed through special files called device nodes, which are
located in the <filename>/dev</filename> directory.</para>
<sect2>
<title>Creating Device Nodes</title>
<para>When adding a new device to your system, or compiling
in support for additional devices, new device nodes must