Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Friends, How can we list only files present in a directory in Redhat linux. The LS commands lists both the files and the directories. What command can be used ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    20

    Cool listing only files

    Hi Friends,

    How can we list only files present in a directory in Redhat linux.

    The LS commands lists both the files and the directories.

    What command can be used for the above purpose.

    Regards,
    Anshul

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    find can do it
    Code:
    man find
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...