On the command line, I can redirect or pipe output of a command to a file or another command using the >
or |
operator after the command. I have come across a less standard situation that I would like to redirect the output to a file, but I don't seem to have the oppurtunity to redirect it:
When at a new terminal,
[chiliNUT ~]$
if I press Tab without typing anything first, I get asked
display all 1725 possibilities? (y or n)
and if I then type y, I get a nice long list of different commands. How can I redirect or pipe this output to a file? I don't seem to get the chance to type > myfile.txt
anywhere.
Using CentOS release 6.4 (Final).