1.

Solve : ls command?

Answer» HI,

How can I do to SHOW a number of files at directory ? For example:

I have following files in my /oracle/network/admin:

gu-ibm610 :/oracle/network/admin>ls -l
total 152
-rw-r--r-- 1 oracle dba 8206 Mar 08 12:39 1
-rw-r----- 1 oracle dba 836 Feb 21 16:05 listener.ora
-rw-r----- 1 oracle dba 844 Oct 22 11:26 listener.ora_old
-rwxr-xr-x 1 oracle dba 722 Mar 09 2000 namesdrp.sql
-rwxr-xr-x 1 oracle dba 1838 Mar 09 2000 namesini.sql
-rwxr-xr-x 1 oracle dba 8676 Mar 09 2000 namesupg.sql

If I want to show only four files, how can I do ?

Thanks.

Which four do you want to show? If only the first four:
ls -l | head -n 5

(because the first line is the total space taken up by the files)

Or did you have something else in MIND?Thanks a lot. It's working now.

You are the best.



Discussion

No Comment Found