How to redirect output of ls to a file?

Hi All,
I want to redirect only the file names to a new file from the ls -ltr directroy. how Can i do it.

my ls -ltr output will be as below.
-rwxr-xr-x 1 118 103 28295 Jul 26 2006 event.podl
-rwxr-xr-x 1 118 103 28295 Jul 26 2006 xyz.podl
I want my new file to have only event.podl . and xyz.podl
Pls Suggest.

Thanks in advance,
Giri.

ls -ltr |awk '{printf $9 "\n"}' >test.txt

\n can be replaced by a space if you want sapces between items.

Why do you use the -l (long format) option?
These are basic commands, at least you should know how to redirect the output to a file, with 41 posts,...

ls -tr > file
ls -1 > test.txt

Thanks a lot vistastar. It works.

But it will fail when files have spaces. Don't use ls with awk like that to parse files.

You don't answer to the OP requirement.
That would be

ls -1tr > test.txt

(note that's dash one, not dash ell) but "-1" is unnecessary as ls knows the output is not a terminal so displays one file per line anyway. Franklin52 got it.