layout | title | tags |
---|---|---|
manual |
ls -A | List all hidden entries except for . and .. |
ls |
When using a command line interface of mac machine, we use command ls
to list directory contents.
A is the abbreviation of ALL.
List all entries except for .
and ..
Always set for the super-user.
Option -a
helps to show all hidden entries including the .
and ..
However, if we use option -A
combining with option -a
, the .
and ..
are still showed. This means when using -a
together with -A
, -A
does not take effect.
Please click here for the details of -a
Mac (BSD) command line utilities
Here are three examples ls -A
, ls -a
, ls -Aa
.
ls -A
List all entries except for.
and..
$ls -A
testFolder test.py
ls -a
List all entries with.
and..
$ls -a
. .. testFolder test.py
ls -Aa
Still, list all entries with.
and..
$ls -Aa
testFolder test.py