Consider the following commands.

i. cat memo letter 2> communication 1>&2
ii. cat memo letter 1>&2 2> communication
Where do the output and error message of the cat command go in each case if
a. both files (memo and letter) exist in the present working directory, and
b. one of the two files does not exist in the present working directory?


a. For the first command, the output goes to the file called communication. For the second command, the output goes to the display screen.
b. For the first command, the output and error message go to the file called communication. For the second command, the output goes to standard output and the error message goes to the communication file.

Computer Science & Information Technology

You might also like to view...

Compressed files usually have a(n) ____ file extension.

A. .exe B. .bmp C. .pdf D. .zip

Computer Science & Information Technology

Each page should have a ____ that states its purpose and has appropriate text and graphic content.

A. footer B. header C. div D. bulleted list

Computer Science & Information Technology

Which of the following protects your computer from brownouts or sags?

A. degaussing B. GPU C. surge protector D. UPS

Computer Science & Information Technology

In the Add Roles and Features Wizard, the Server Roles window lists all the server roles you can currently install.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology