A single listing of all files in the directory xyz. Read the man page for ls. man ls That looks like a pipe on end of the second line, also the escape character "\" is out of place. Did you cut this out of a script that you are trying to understand?
Originally posted by meeran1978 cd /abc/xyz
\ls -1l
And that's not a pipe, it's a number 1.
From the man page for ls:
Code:
-l use a long listing format
-1 list one file per line
So the OP intends to list all the details of each file and only one file per line.... seems redundant to me. By default, the long-listing format lists one file per line with all the details on the rest of the line.
google, what looks like a pipe is really the letter "L". I copied and pasted the line into notepad and it becomes obvious. It had me confused for a while.
Gotcha! Well, there really isnt much point to using both -1 option and the -l option at teh same time as the output is the same as if you simply typed ls -l (at least it is on the HP machine I use).