What I want to achieve
- print file types such as
ASCII text
ordirectory
in the shell - print all file types in a directory
Solution
Use the file
command.
For example, to display the file types in the sample
directory, enter this command;
$ file sample/*
Top comments (0)