Easy Tutorial
❮ Linux Comm Fdformat Linux Comm Colrm ❯

Linux spell Command

Linux Command Manual

The Linux spell command can create a spell-checking program.

spell can read strings from standard input devices and display misspelled words after completion.

Syntax

spell

Example

To check if there are any spelling errors in the file testfile, enter the following command at the command prompt:

spell testfile

If there are misspelled words in the file, the output will be as follows:

$ spell testfile   # Check for spelling errors in testfile
scurity            # Misspelled words below
tp
LANs
Securty
practicl
applcations
necesary

If the file being checked has no spelling errors, the command will not provide any output.

Check strings read from standard input. For example, enter the following command at the command prompt:

spell

After pressing Enter, input a string of characters, then press Ctrl+D to exit spell. The screen will display any misspelled words. For example:

$ spell # Check for spelling errors in standard input string
hell,this is a linx sustem! # String with spelling errors
linx # Misspelled words below
sustem

Linux Command Manual

❮ Linux Comm Fdformat Linux Comm Colrm ❯