Untitled Document
fileCommand

file command is used to determine file's type .

1. Basic example -

Run file command without any options and arguments . It will print list of all files and directories with its type name .

file

2. Running file command for particular files -

Suppose i want to get the list for all ksh files from current directory , then run the command as -

file "*.ksh"
Untitled Document