A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

November 25, 2009

question about ls output

ok. so i'm just learning so pardon me please.

i am entering:

ls -aF

which should return everything in my current directury, hidden or not, and whether its a file, directory or symb link. when i do this i tally up the directories then enter in the following

ls -adl

which should return all (hidden or not) directories in a long list format.

PROBLEM IS the numbers of long list dont match up with my tally in ls -aF. as a matter of fact, if there are 16 items in ls -aF, 16 items show up in ls -adl as well, not just the directories.

just wondering why this is.

thanks. hope that made sense.

Click Here!