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...

The time to merge two sorted lists of size n is _________

A. O(n*n) B. O(nlogn) C. O(n) D. O(1) E. O(logn)

Computer Science & Information Technology

The managerial tutorial equivalent of NIST SP 800-12, providing overviews of the roles and responsibilities of a security manager in the development, administration, and improvement of a security program, is NIST __________.

A. SP 800-100: Information Security Handbook: A Guide for Managers (2007) B. SP 800-18, Rev. 1: Guide for Developing Security Plans for Federal Information Systems (2006) C. SP 800-14: Generally Accepted Principles and Practices for Securing Information Technology Systems (1996) D. SP 800-110, Rev. 1: Manager's Introduction to Information Security (2016)

Computer Science & Information Technology