How can I >> the command together with the output to a file?

From: Jirong Hu (hujirong888_at_yahoo.com)
Date: 02/11/05


Date: Thu, 10 Feb 2005 20:17:47 -0500

e.g. if the command is "ls -al", I can save the output to a file by "ls -al
>> ls.result". How to include this "ls -al" into the output file, ls.result?

Jirong