aspell command in Linux is a tool which is used to check misspellings when user is writing or editing text files or documents. It allows the user to independently correct the words and work interactively. aspell command is fast, easy to use, and flexible. Command line editor cannot have inbuilt spell checker as most of the GUI based editor has that’s why there’s a separate command line tool that can help user to check spells.
Syntax to use with aspell command in Linux
aspell check [options] filename
Available options to use with aspell command
-a: Used for checking individual words
-c: Used for checking a file for certain error
-mode=mode: Used for specifying modes we need to use while checking files
-master=name: It’s the aspell main dictionary which can be used for checking errors
-dont-backup: Using this, aspell will not create backup filename
-encoding=name: Used for encoding the file that is expected to be in
-lang=name -l name: Used for specifying the language of the document
-sug-mode=mode: The option is used for working in suggestion mode
Examples:
Checking a file servonode.txt for error
aspell -c servonode.txt

Nishant Verma is a senior web developer who love to share his knowledge about Linux, SysAdmin, and more other web handlers. Currently, he loves to write as content contributor for ServoNode.