ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 566 - 220-1102 discussion

Report
Export

A customer who uses a Linux OS called the help desk to request assistance in locating a missing file. The customer does not know the exact name of the file but can provide a partial file name. Which of the following tools should the technician use? (Select two).

A.
cat
Answers
A.
cat
B.
df
Answers
B.
df
C.
grep
Answers
C.
grep
D.
ps
Answers
D.
ps
E.
dig
Answers
E.
dig
F.
find
Answers
F.
find
G.
top
Answers
G.
top
Suggested answer: C, F

Explanation:

To locate a missing file with only a partial name known, the best tools to use in a Linux environment would be grep and find.

grep: This command is used to search the contents of files for a specific pattern. While grep itself might not be the first choice for finding file names, it can be combined with other commands (like ls or find) to search within file lists or contents.

find: This command is used to search for files in a directory hierarchy based on various criteria like name, size, modification date, etc. find can be used to search for files by partial name by using wildcards in the search pattern.

cat (A) is used to concatenate and display the content of files. df (B) displays the amount of disk space used and available on filesystems. ps (D) shows information about active processes. dig (E) is used for querying DNS name servers. top (G) displays Linux tasks and system performance information. None of these tools are directly suited for finding files by partial names.

asked 02/10/2024
Narender B
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first