April 22, 2023

Spellcheck a file in the shell (terminal)

For example, to spellcheck the file letter.txt run:

$ aspell check letter.txt

The shell (a.k.a terminal) will display an interactive screen suggesting corrections. You can choose to ignore the highlighted word, accept a suggestion et cetera.

To learn more about aspell, run $ man aspell in your shell.

You might notice that when you spellcheck and modify a file, aspell creates a backup of that file by making a copy and appending .bak to the file name. To tell aspell not to create a backup file, add the option -x to the command.

aspell is copyleft-licensed and maintained by Kevin Atkinson.


personal computing gnu linux trisquel command-line interface (cli) text processing wiki office applications shell literacy offline

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2024 by yctct is licensed under CC BY-ND 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88