file /directory name/*

From this command, you can list out all the file types from the mentioned directory. For example, by typing command file /var/* , we'll receive following output.

Syntax:

Example:

Linux file directory



Latest Courses