I like to write the contents of ls -l into a file in unix. What is the command.
Can somebody help.
I di ls -l>tst.dat
but it is writting only few file names.
There are about 2000 files in this directory.

--Easwran

10-31-2002, 04:24 PM

marist89

That's the way you do it!

ls -l > myfile.out

10-31-2002, 04:31 PM

stecal

Use ls -la to get a listing of ALL files in your working directory (and ls -la > file.name).