Linux and Unix spell command

Quick links

About spell
Syntax
Examples
Related commands
Linux and Unix main page

About spell

Looks through a text file and reports any words that it finds in the text file that are not in the dictionary.

Syntax

spell [-b] [-i] [-l] [-v] [-x] [+wordlist] filenames

-bUses British spellings.
-iCause deroff to ignore .so and .nx commands. If deroff is not present on the system, then this option is ignored.
-lFollow the chains of all included files.
-vPrint all words not literally in the spelling list, as well as plausible derivations from the words in the spelling list.
-xPrint every plausible stem, one per line, with = preceding each word.
+wordlistAdds words to the dictionary so next time they are found it does not think that they are incorrect.
filenamesThe name of the file(s) to be spell checked.

Examples

spell myfile.txt

spell checks the file myfile.txt.

Related commands

deroff
eqn
sort
tbl
troff