Been racking my brain on this one for long time. I use bash and I would like to have a file containing all the commands I can execute. Now when i press TAB-TAB at prompt it shows
Display all 1710 possibilities? (y or n)
now if i press y the whole list scrolls by and i can view only the last screen :( Is it possible to redirect the output to a file?
On Tue, Apr 02, 2002 at 07:54:11PM +0530, Nikhil Joshi wrote:
Been racking my brain on this one for long time. I use bash and I would like to have a file containing all the commands I can execute. Now when i press TAB-TAB at prompt it shows
Display all 1710 possibilities? (y or n)
now if i press y the whole list scrolls by and i can view only the last screen :( Is it possible to redirect the output to a file?
1] You can use the "Shift+PgUp" to move up upto a limit.
2] Try the "script" utility ( install if not there ).
type "script" < Now, do any activity > type "exit/Ctrl-D/whatever-you-do-to-end-the-program"
A file called typescript is created.
Open in an editor and see.
hth.
On Tue, Apr 02, 2002 at 07:54:11PM +0530, Nikhil Joshi wrote:
Display all 1710 possibilities? (y or n)
now if i press y the whole list scrolls by and i can view only the last screen :( Is it possible to redirect the output to a file?
On the command prompt execute this sequence user@host $ script user@host $ <TAB> <TAB> user@host $ exit user@host $ strings typescript | less
some garbage may come in the starting but after few lines will be the commands you want.
regards