I am writing a bash script and I want to check type of files.
Let's say I have a directory with different files. I want to check every file and see what type it is.

I need some command that will tell me: "OK, this file is a directory"
or "this file is pipe" or "this file is link", etc.