View Whitespace

Chester Wyke December 01, 2023 Updated: April 15, 2025 #debian

Source: https://stackoverflow.com/questions/3569997/how-to-find-out-line-endings-in-a-text-file

Using the -A flag with cat shows non-printing characters, including line endings.

cat -A file.txt

List of how some characters are represented: