file Flashcards

1
Q

file

A

file tests each argument in an attempt to classify it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

file -b userfile

A

This command will attempt to find the file type and the -b option will remove the filename from the output.

-b, –brief, Do not prepend filenames to output lines.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

file -i filename

A

This command will cause the file command to output mime type strings rather than the more traditional human readable ones.

-i, –mime, Output is diplayed in MIME type strings.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

file -z compressedfile.gz

A

This will get the file type info from a file that is inside a compressed file.

-z, –uncompress, Try to look inside compressed files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

file *

A

file can be used with wildcards to display the file type of all files in a directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly