Linux: How can I view a file's attributes which I set using `chattr`?

You want

lsattr filename

See man lsattr.