ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 354 - XK0-005 discussion

Report
Export

A systems administrator is gathering information about a file type and the contents of a file. Which of the following commands should the administrator use to accomplish this task?

A.

file filename

Answers
A.

file filename

B.

touch filename

Answers
B.

touch filename

C.

grep filename

Answers
C.

grep filename

D.

lsof filename

Answers
D.

lsof filename

Suggested answer: A

Explanation:

The file command determines the file type of the given file (e.g., whether it is a text file, binary, or a special format). It helps identify the format of the file before further actions like editing or analyzing its content. For example, running file filename might return 'ASCII text' or 'ELF 64-bit executable'.

asked 09/10/2024
Daniel Adebayo
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first