ExamVeda
Login
Home
51
Which command will be used with vi editor to replace text from cursor to right?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
52
Which of the following commands is used to rename a file?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
53
Which of the following is not a filter?
Discuss
Answer & Solution
Answer: Option A
Solution:
Option A: cat

This option is correct. The cat (concatenate) command in Unix is used to read and concatenate files and print them to the standard output. It does not filter data but rather displays the contents of files or concatenates them. Therefore, it is not considered a filter.

Option B: grep

This option is incorrect. The grep command is a filter that searches for patterns within text. It reads input and outputs only the lines that match the given pattern.

Option C: wc

This option is incorrect. The wc (word count) command is a filter that counts the number of lines, words, and characters in a file or input stream. It processes the input data and produces summarized output, making it a filter.

Option D: sort

This option is incorrect. The sort command is a filter that sorts the lines of input data based on specified criteria. It reads input data, processes it, and outputs the sorted result, thus acting as a filter.

Option E: None of the above

This option is incorrect. As explained above, the cat command is not a filter, while the other commands listed are filters.

Conclusion:

The cat command is not a filter, making Option A: cat the correct answer.
54
Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
55
Which command is used to list all the files with extension .lst?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
56
Which option is used with the chmod command recursively to all files and sub-directories in a directory?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
57
Which command is used to change directory to the name beginning with a 'p'?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
58
Which of the following is invalid filename?
Discuss
Answer & Solution
Answer: Option E
No explanation is given for this question. Let's Discuss on Board
59
Which commands is used to assign executable permission to all of the files named "letter"?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
60
Which set option is used with vi editor to display line numbers on screen?
Discuss
Answer & Solution
Answer: Option B
Solution:
In the vi editor, the set option "nu" is used to display line numbers on the screen. When you type ":set nu" or ":set number" in command mode of vi, it enables line numbering, displaying line numbers to the left of each line.

Therefore, the correct answer is Option B: nu.