2

I would need to know if there's a way to differentiate files & directories .

Note : Without using longlisting

3
  • you mean you dont want to use ls -F ? You want to do it with someother command ?
    – Raja G
    Dec 17, 2014 at 15:02
  • Yes , exactly the wat I need Dec 17, 2014 at 21:20
  • 1
    @AgentCool your answer was helpful for me . That is what I required .Thanks Dec 18, 2014 at 18:12

1 Answer 1

1

I believe you are looking for something like this:

ls -d /home/$USER/Documents/*/

it will list all dirs in Documents. The last "/" makes it "directories" only.

1
  • Yeah , Tried this today . It's helpful , thanks Dec 18, 2014 at 18:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .