Write the syntax with example of any four file commands.
Answers
Answered by
0
Answer:
1. filesystem test: This test is based on the result which returns from a stat system call. The program verifies that if the file is empty, or if it’s some sort of special file. This test causes the file type to be printed.
2. magic test: These tests are used to check for files with data in particular fixed formats.
3. language test: This test search for particular strings which can appear anywhere in the first few blocks of a file.
Similar questions