What is the difference between the following commands?

a. grep “John Doe” Students > /dev/null 2>&1

b. grep “John Doe” Students 2>&1 > dev/null


a. The output of the grep command (the lines in the Students file that contain the string “John Doe”) and error message go to /dev/null.

b. The output of the grep command (the lines in the Students file that contain the string “John Doe”) goes to /dev/null and error message to standard output (the display screen).

Computer Science & Information Technology

You might also like to view...

You are responsible for the design of a communications switch that has to provide 24/7 availability, but which is not safety-critical. Giving reasons for your answer, suggest an architectural style that might be used for this system.

What will be an ideal response?

Computer Science & Information Technology

When you declare a one-dimensional array, you type ____ after the array's type and name.

A. () B. [] C. {} D. **

Computer Science & Information Technology

The legal documents found on websites that help explain how to handle copyrighted materials are known as

a. creative policies. b. terms of use. c. security notices. d. liability exemptions.

Computer Science & Information Technology

The YEARFRAC function returns the number of the month in a year

Indicate whether the statement is true or false

Computer Science & Information Technology