What is the -alhF flag in ls? I can't find it in the man page.


1 Answer 1


From man ls:

   -a, --all
          do not ignore entries starting with .

   -F, --classify
          append indicator (one of */=>@|) to entries

   -h, --human-readable
          with -l, print sizes in human readable format (e.g., 1K 234M 2G)

   -l     use a long listing format

The command ls -alhF is equivalent to ls -a -l -h -F

The ability to combine command line arguments like this is defined by POSIX.

Options that do not require arguments can be grouped after a hyphen, so, for example, -lst is equivalent to -t -l -s.

  • O! Nowhere explained on the Internet! So, it is the combination of the 4 commands as defined in your answer, yes?
    – user117185
    May 28, 2015 at 17:30
  • @MariaS. yes, that is what my answer explicitly says.
    – casey
    May 28, 2015 at 17:33
  • Casey, why do I see a 'yesterday' next to 'casey' above? And why did the question I asked is now phrased differently?
    – user117185
    Jun 1, 2015 at 15:00
  • @MariaS. your question was edited by others to increase its clarity and make it easier for others to find it.
    – casey
    Jun 1, 2015 at 15:11
  • It now sounds, like a beginner's question said by an expert. I wouldn't pick-up on the word 'flag' and would think it has to do with something else, if I was searching for an answer to my question. Anyway, thank you very much...
    – user117185
    Jun 1, 2015 at 16:04

You must log in to answer this question.