How to view a text file on your Linux or Unix box like a pro
@nixCraft cp test /dev/stdout
@[email protected] @nixCraft any reason not to make cat an alias of that?

@locness3 @nixCraft You’d need a function, cat needs to handle multiple files, cp with 2+ origins wants the destination to be a directory.

Also it makes coreutils says rather funny things if you want the behavior of argument-less cat:

$ cp /dev/stdin /dev/stdout cp: '/dev/stdin' and '/dev/stdout' are the same file