Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.19 KB

ls_uppercase_A.md

File metadata and controls

53 lines (34 loc) · 1.19 KB
layout title tags
manual
ls -A | List all hidden entries except for . and ..
ls

Scenario

When using a command line interface of mac machine, we use command ls to list directory contents.

Options -A for ls

A is the abbreviation of ALL.

Manpage Description

List all entries except for . and .. Always set for the super-user.

Detail Explain

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

Version

Mac (BSD) command line utilities

Examples

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