How to view the control characters in a file?

Hello,

How can I view control and special characters of a text file?. For example, space, tabs, new line chars etc.

Can I use hexdump for it?

Thanks

This might be helpful:-

Generally, I use

cat -tve filename.txt

#or

od -c filename.txt

Yes, hexdump (or hd ) is fine.