I would need to know if there's a way to differentiate files & directories .
Note : Without using longlisting
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityI 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.
ls -F
? You want to do it with someother command ?