I wanted to redirect mc
's man page to a text file using man mc > mc
, but I accidentally executed man mc > mc grep
. What resulted was a text file named mc
containing two concatenated mc
man pages.
I then tried man ls > 1 abc
, which resulted in text file named 1
containing the ls
man page and an error message in the terminal: No manual entry for abc
.
Next I tried man du > du ls tac
. I expected three concatenated du
man pages, but what actually resulted was a text file named du
containing the man pages of du
, ls
and tac
concatenated.
Why did each command produced the results it did?
mc
...)mc
.mc
andgrep
inmc
, which is to be expected.mc
andgrep
man pages in a file calledmc
for first example.