adplus-dvertising
frame-decoration

Question

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

a.

cut sales empl.lst

b.

/sales > empl.lst

c.

grep sales empl.lst

d.

cat | /sales > empl.lst

Posted under Operating System

Answer: (c).grep sales empl.lst

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs

Q. Which of the following commands is not the vi Input mode command?

Q. Which of the following commands is used to remove files?

Q. Which command is used with vi editor to save file and remain in the editing mode?

Q. You can append to a file instead of overwriting by using the

Q. The [line number G] key allows you

Q. Which of the following commands is used to have a two-way communication with any person who is currently logged in?

Q. Which command is used with vi editor to move the cursor to the left?

Q. Which of command is used to copy a file?

Q. The special shell variable $* is used

Q. The cat command is used to

Q. The UNIX file system stores a data in physical blocks of

Q. Which command is used to terminate all processes in your own system except the login shell?

Q. Which operator will be used with chmod command to assign absolute permission?

Q. Which command is used to link the files?

Q. Which of the following signs is used to back up over typing errors in vi?

Q. Major expressions used with find command to select file is it has been accessed in more than 375 days, is

Q. Which of are following internal commands is used in mail to forward mail to user in user-list?

Q. Which of the following commands is used to display the filenames in multiple columns?

Q. Which command is used with file named 'note' to remove the executable permission from the user and assign read permission to the group and others?

Q. CloseHandle() call function in windows operating system is a UNIX's function called for