adplus-dvertising
frame-decoration

Question

Which of the following command is used to count just the number of lines contained in a file?

a.

wc -l

b.

wc -c

c.

wc -w

d.

wc -r

Answer: (a).wc -l

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following command is used to count just the number of lines contained in a file?

Similar Questions

Discover Related MCQs

Q. Which of the following command is used to go to home directory?

Q. Which command is used to move all files to the bin sub-directory of the parent directory?

Q. Which command is used to save the standard output in a file, as well as display it on the terminal?

Q. The command that can be used to restrict incoming messages to a user is

Q. Which of the following commands is used to copy directory structures in and out

Q. Which of following commands is used for an automatic reminder service?

Q. Which command allows you to view your file 24 lines at a time?

Q. Which of the following special shell variables is used to process number of the current shell?

Q. Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?

Q. Which command is used with vi editor scroll half page backward?

Q. Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?

Q. Which of the following keys is used to delete the character beneath the cursor?

Q. Which command is used to assign only read permission to all three categories of the file 'note'?

Q. Which command will be used with vi editor to append text at end of line?

Q. The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has

Q. Which of the following commands is used to save the output of the who command in a file named user.lst, as well as display it?

Q. Which of the following shell's wildcards are used to match any number of characters including none?

Q. The command used to remove the directory is;

Q. Which symbol will be used with grep command to match the pattern pat at the end of a line?

Q. Which command is used to display all the lines with the string 'sales' from the file empl.lst?