list only files or folders

Hi experts,

i wanna to list either file or folder.
please help me

Thanks (in advance)

:confused:Jagannath

pl clear about ur question...??
:frowning:

Thanks for reply

there are 6 files & 9 folder in my /home/jag/ folder

so when i am running command this command to list files

#find .txt or find *.

then it shows 5 out off 6 files i want see all files

second when i m running this command to view all folders

#ls --hide=*.*
it shows all folder excluding one which named as jag12.11.2007

i want to view files & folders

again thanks for reply

Please help me
:rolleyes:

ls -l | grep ^d -> this will list all the directories

ls -l |grep ^- -> thils will list all regular files

Thanks a lot
problem has been solved

can u tell me whts use of " ^ " (meaning)

again thanks
:slight_smile:

^ means beginning with

Thanks for express reply

can i add u in my buddy list? :slight_smile: