Open In App

aspell command in Linux with examples

aspell command is used as a spell checker in Linux. Generally, it will scan the given files or anything from standard input then it check for misspellings. Finally it allows the user to correct the words interactively.

Syntax:



aspell check [options] filename

Options:

Example 1: Check a file for spelling errors



aspell -c sample.txt

Sample Text

Example 2: Using aspell to check individual words.

aspell -a

Note: As soon as you run this command, it will wait for user input. Type a word in this mode, press enter, and you’ll see aspell offering spelling suggestions on stdout.

Example 3: Using aspell to check words in bulk. When run, will wait for user input. Add as many words as you want, and when done, press Ctrl+D. Then you’ll see that aspell will display incorrectly spelled words below the input you provided.

Article Tags :