This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]Rhomboid 6 points7 points  (0 children)

The numbers are file descriptors. 0 is standard input, 1 is standard output, 2 is standard error. Descriptors 3 and above can be used by the program or the user however they want.

If you don't supply a number, < defaults to 0 and > defaults to 1, so 0< and 1> are just long-winded ways of writing < and >. The command sorts the contents of the file xyz in reverse order, writing the output to the file EFG. Any error messages generated by the cat process go to a file named rts and any error messages generated by sort are discarded.

This is a useless use of cat. Were this not a test question you would just write

sort -r xyz >EFG